1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00

remove workaround for _heapmaxavail

This commit is contained in:
Christian Groessler 2014-02-21 22:42:09 +01:00
parent 701c59900d
commit 09f7eb72c2

View File

@ -70,7 +70,7 @@ int main(int argc, char **argv)
/* allocate buffer */
buffer = malloc(buflen);
if (! buffer) {
buflen = _heapmaxavail() - 8; /* get as much as we can */
buflen = _heapmaxavail(); /* get as much as we can */
buffer = malloc(buflen);
if (! buffer) {
fprintf(stderr, "cannot alloc %ld bytes -- aborting...\n", (long)buflen);