1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

(_int_realloc): Likewise. Third argument is now padded size

This commit is contained in:
Ulrich Drepper
2009-02-07 22:49:34 +00:00
parent 78ac92ad8d
commit 6dd6a580df
3 changed files with 14 additions and 14 deletions

View File

@ -354,8 +354,11 @@ realloc_check(oldmem, bytes, caller)
}
} else {
#endif /* HAVE_MMAP */
if (top_check() >= 0)
newmem = _int_realloc(&main_arena, oldp, bytes+1);
if (top_check() >= 0) {
INTERNAL_SIZE_T nb;
checked_request2size(bytes + 1, nb);
newmem = _int_realloc(&main_arena, oldp, nb);
}
#if 0 /* Erase freed memory. */
if(newmem)
newp = mem2chunk(newmem);