From e134bb97526d95d1024bfbf1afa1a37b36a693f1 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 28 Nov 2015 16:00:17 +0100 Subject: Fixed a compilation error when the memory manager is disabled Signed-off-by: Haru --- src/common/memmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/memmgr.c b/src/common/memmgr.c index 0d9305b06..f7177338c 100644 --- a/src/common/memmgr.c +++ b/src/common/memmgr.c @@ -140,7 +140,7 @@ void* aReallocz_(void *p, size_t size, const char *file, int line, const char *f #else size_t newSize; if (p) { - size_t oldSize = malloc_usable_size(p); + size_t oldSize = BUFFER_SIZE(p); ret = REALLOC(p, size, file, line, func); newSize = BUFFER_SIZE(ret); if (ret && newSize > oldSize) -- cgit v1.2.3-70-g09d2