From 0dfa665cc1fb3cf34ef4e173effe5651d4a8497d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20B=C3=ADlka?= Date: Tue, 10 Dec 2013 19:36:28 +0100 Subject: Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset. --- malloc/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc/hooks.c') 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); } } -- cgit v1.2.3