From: Jan Nieuwenhuizen Date: Sun, 26 Mar 2017 13:49:45 +0000 (+0200) Subject: mescc: Bugfix for realloc. X-Git-Tag: v0.5~89 X-Git-Url: https://jxself.org/git/?p=mes.git;a=commitdiff_plain;h=17f89b2c78e333d2f0cee1ecc80a2c367468318e mescc: Bugfix for realloc. * module/mes/libc.mes (realloc): Thinko. --- 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; }