mescc: Bugfix for realloc.
* module/mes/libc.mes (realloc): Thinko.
This commit is contained in:
parent
f015150cd8
commit
17f89b2c78
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue