From ed9539de94094ba033541851381c566c5519f939 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 May 2015 20:02:00 -0400 Subject: [PATCH] Fixed an error in the previous few commits. --- unix/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/alloc.c b/unix/alloc.c index 0e1c77e8..b56116bd 100644 --- a/unix/alloc.c +++ b/unix/alloc.c @@ -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);