Remember to actually update the brk position when calling brk.
This commit is contained in:
parent
dc1f69be83
commit
c37c0e62cc
|
@ -31,6 +31,7 @@ void* sbrk(int increment)
|
|||
if (brk(new) < 0)
|
||||
goto out_of_memory;
|
||||
|
||||
current = new;
|
||||
return old;
|
||||
|
||||
out_of_memory:
|
||||
|
|
Loading…
Reference in a new issue