summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-11-28 16:00:17 +0100
committerHaru <haru@dotalux.com>2015-11-28 16:00:17 +0100
commite134bb97526d95d1024bfbf1afa1a37b36a693f1 (patch)
tree79ab5e74d1c107eb72345b1c406ec0c3451ca06e
parentaad6eaea82053f629cbbe204aa83db5fd4b557a4 (diff)
downloadhercules-e134bb97526d95d1024bfbf1afa1a37b36a693f1.tar.gz
hercules-e134bb97526d95d1024bfbf1afa1a37b36a693f1.tar.bz2
hercules-e134bb97526d95d1024bfbf1afa1a37b36a693f1.tar.xz
hercules-e134bb97526d95d1024bfbf1afa1a37b36a693f1.zip
Fixed a compilation error when the memory manager is disabled
Signed-off-by: Haru <haru@dotalux.com>
-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)