From 5dbae4a29bcf354ca5ceb07ff0f8e376f106f494 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 17 May 2020 19:29:09 +0200 Subject: [PATCH] mescc: Mes C Library: Prepare for M2-Planet: malloc. * lib/stdlib/malloc.c: Rewrite C-constructs not supported by M2-Planet. --- lib/linux/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linux/malloc.c b/lib/linux/malloc.c index 42914440..d7a38362 100644 --- a/lib/linux/malloc.c +++ b/lib/linux/malloc.c @@ -37,6 +37,6 @@ malloc (size_t size) if (brk (__brk + size) == -1) return 0; char *p = __brk; - __brk += size; + __brk = __brk + size; return p; }