bug fixes

This commit is contained in:
ceriel 1987-04-02 14:09:21 +00:00
parent 75a8a6cc64
commit 8675bc2b01

View file

@ -27,11 +27,10 @@ unsigned len;
register char *p; register char *p;
p = (char *) ALIGN((vir_bytes) top + sizeof(char *) + len, CLICK_SIZE) p = (char *) ALIGN((vir_bytes) top + sizeof(char *) + len, CLICK_SIZE)
+ BUGFIX + BUGFIX;
- sizeof(char *);
if (p < top || brk(p - BUGFIX) < 0) if (p < top || brk(p - BUGFIX) < 0)
return(0); return(0);
top = p; top = p - (BUGFIX + sizeof(char *));
for (p = bottom; NEXT(p) != 0; p = (char *) (* (vir_bytes *) p & ~BUSY)) for (p = bottom; NEXT(p) != 0; p = (char *) (* (vir_bytes *) p & ~BUSY))
; ;
NEXT(p) = top; NEXT(p) = top;