Fixed an error in the previous few commits.
This commit is contained in:
parent
7b04df6c98
commit
ed9539de94
|
@ -29,7 +29,7 @@ void *uiRealloc(void *p, size_t new)
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
return uiAlloc(new);
|
return uiAlloc(new);
|
||||||
p = BASE(p);
|
p = BASE(p);
|
||||||
out = g_realloc(p, new);
|
out = g_realloc(p, sizeof (size_t) + new);
|
||||||
s = SIZE(out);
|
s = SIZE(out);
|
||||||
if (new <= *s)
|
if (new <= *s)
|
||||||
memset(((uint8_t *) DATA(out)) + *s, 0, new - *s);
|
memset(((uint8_t *) DATA(out)) + *s, 0, new - *s);
|
||||||
|
|
Loading…
Reference in New Issue