summaryrefslogtreecommitdiff
path: root/malloc/hooks.c
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2013-12-10 19:36:28 +0100
committerOndřej Bílka <neleai@seznam.cz>2013-12-10 19:36:28 +0100
commit0dfa665cc1fb3cf34ef4e173effe5651d4a8497d (patch)
tree02fa3ed5599d0e3d9c4096975f175ef4a638812a /malloc/hooks.c
parent5782a80f9f8ca86899b30161166f044b0b6b8590 (diff)
downloadglibc-0dfa665cc1fb3cf34ef4e173effe5651d4a8497d.tar.gz
Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
Diffstat (limited to 'malloc/hooks.c')
-rw-r--r--malloc/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/hooks.c b/malloc/hooks.c
index 8784adb37a..7010fe66f8 100644
--- a/malloc/hooks.c
+++ b/malloc/hooks.c
@@ -330,7 +330,7 @@ realloc_check(void* oldmem, size_t bytes, const void *caller)
if (top_check() >= 0)
newmem = _int_malloc(&main_arena, bytes+1);
if (newmem) {
- MALLOC_COPY(newmem, oldmem, oldsize - 2*SIZE_SZ);
+ memcpy(newmem, oldmem, oldsize - 2*SIZE_SZ);
munmap_chunk(oldp);
}
}