diff options
author | Haru <haru@dotalux.com> | 2015-11-28 16:00:17 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-11-28 16:00:17 +0100 |
commit | e134bb97526d95d1024bfbf1afa1a37b36a693f1 (patch) | |
tree | 79ab5e74d1c107eb72345b1c406ec0c3451ca06e | |
parent | aad6eaea82053f629cbbe204aa83db5fd4b557a4 (diff) | |
download | hercules-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.c | 2 |
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) |