From: ceriel Date: Mon, 11 Jul 1988 14:06:11 +0000 (+0000) Subject: try another SBRK X-Git-Tag: release-5-5~3061 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=45bb3b14137b77b133a9b146fa982dea4906b97b;p=ack.git try another SBRK --- diff --git a/modules/src/malloc/mal.c b/modules/src/malloc/mal.c index 7439ef779..cf8924458 100644 --- a/modules/src/malloc/mal.c +++ b/modules/src/malloc/mal.c @@ -91,6 +91,10 @@ malloc(n) } p = SBRK((int)req); + if (p == ILL_BREAK) { + req = n + mallink_size(); + p = SBRK((int)req); + } if (p == ILL_BREAK) { /* Now this is bad. The system will not give us more memory. We can only liquidate our store