Remember to actually update the brk position when calling brk.

This commit is contained in:
David Given 2022-08-19 20:03:40 +02:00
parent dc1f69be83
commit c37c0e62cc

View file

@ -31,6 +31,7 @@ void* sbrk(int increment)
if (brk(new) < 0) if (brk(new) < 0)
goto out_of_memory; goto out_of_memory;
current = new;
return old; return old;
out_of_memory: out_of_memory: