mirror of
https://github.com/cc65/cc65.git
synced 2025-08-07 00:25:45 +00:00
remove workaround for _heapmaxavail
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user