Fixed an error in the previous few commits.

This commit is contained in:
Pietro Gagliardi 2015-05-04 20:02:00 -04:00
parent 7b04df6c98
commit ed9539de94
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ void *uiRealloc(void *p, size_t new)
if (p == NULL)
return uiAlloc(new);
p = BASE(p);
out = g_realloc(p, new);
out = g_realloc(p, sizeof (size_t) + new);
s = SIZE(out);
if (new <= *s)
memset(((uint8_t *) DATA(out)) + *s, 0, new - *s);