From c37c0e62cc31d181defb7a4043f81c73fbbcd87c Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 19 Aug 2022 20:03:40 +0200 Subject: [PATCH] Remember to actually update the brk position when calling brk. --- plat/msdos386/libsys/sbrk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plat/msdos386/libsys/sbrk.c b/plat/msdos386/libsys/sbrk.c index 988d406f3..2dbd610f3 100644 --- a/plat/msdos386/libsys/sbrk.c +++ b/plat/msdos386/libsys/sbrk.c @@ -31,6 +31,7 @@ void* sbrk(int increment) if (brk(new) < 0) goto out_of_memory; + current = new; return old; out_of_memory: