mescc: Bugfix for realloc.

* module/mes/libc.mes (realloc): Thinko.
This commit is contained in:
Jan Nieuwenhuizen 2017-03-26 15:49:45 +02:00
parent f015150cd8
commit 17f89b2c78
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}