From 09f7eb72c247d59d5f1a0bee80039f118e42c658 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Fri, 21 Feb 2014 22:42:09 +0100 Subject: [PATCH] remove workaround for _heapmaxavail --- util/atari/w2cas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5