From: Christian Groessler Date: Fri, 21 Feb 2014 21:42:09 +0000 (+0100) Subject: remove workaround for _heapmaxavail X-Git-Tag: V2.15~141^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=09f7eb72c247d59d5f1a0bee80039f118e42c658;p=cc65 remove workaround for _heapmaxavail --- diff --git a/util/atari/w2cas.c b/util/atari/w2cas.c index 38c2f0fdf..050218cfe 100644 --- a/util/atari/w2cas.c +++ b/util/atari/w2cas.c @@ -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);