* malloc/malloc.c (_int_realloc): Make error message clearer.
This commit is contained in:
Ulrich Drepper 2005-09-27 01:55:24 +00:00
parent b5d839c996
commit 4b04154dcd
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2005-09-26 Ulrich Drepper <drepper@redhat.com> 2005-09-26 Ulrich Drepper <drepper@redhat.com>
[BZ #786]
* malloc/malloc.c (_int_realloc): Make error message clearer.
[BZ #713] [BZ #713]
* libio/iofgets.c: Treat N==1 correctly. * libio/iofgets.c: Treat N==1 correctly.
* libio/iofgets_u.c: Likewise. * libio/iofgets_u.c: Likewise.

View File

@ -4618,7 +4618,7 @@ _int_realloc(mstate av, Void_t* oldmem, size_t bytes)
if (__builtin_expect (oldp->size <= 2 * SIZE_SZ, 0) if (__builtin_expect (oldp->size <= 2 * SIZE_SZ, 0)
|| __builtin_expect (oldsize >= av->system_mem, 0)) || __builtin_expect (oldsize >= av->system_mem, 0))
{ {
errstr = "realloc(): invalid size"; errstr = "realloc(): invalid old size";
goto errout; goto errout;
} }