From 17f89b2c78e333d2f0cee1ecc80a2c367468318e Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 26 Mar 2017 15:49:45 +0200 Subject: [PATCH] mescc: Bugfix for realloc. * module/mes/libc.mes (realloc): Thinko. --- module/mes/libc.mes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/mes/libc.mes b/module/mes/libc.mes index d4d500e2..688a0f3b 100644 --- a/module/mes/libc.mes +++ b/module/mes/libc.mes @@ -298,8 +298,8 @@ malloc (int size) { //void *p = brk (0); char *p = 0; - if (!g_malloc_base) g_malloc_base = p; p = brk (0); + if (!g_malloc_base) g_malloc_base = p; brk (p+size); return p; }