summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/memmgr.c2
1 files changed, 1 insertions, 1 deletions
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)