summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/realloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/malloc/realloc.c')
-rw-r--r--libc/stdlib/malloc/realloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c
index 4372751d0..f19df8bde 100644
--- a/libc/stdlib/malloc/realloc.c
+++ b/libc/stdlib/malloc/realloc.c
@@ -73,7 +73,7 @@ realloc (void *mem, size_t new_size)
if (mem)
MALLOC_DEBUG (" realloc: returning 0x%lx"
" (base:0x%lx, total_size:%d)\n",
- (long)new_mem, (long)new_mem - sizeof(size_t), size);
+ (long)mem, (long)MALLOC_BASE(mem), (long)MALLOC_SIZE(mem));
return mem;
}