mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
[BZ #786]
* malloc/malloc.c (_int_realloc): Make error message clearer.
This commit is contained in:
parent
b5d839c996
commit
4b04154dcd
@ -1,5 +1,8 @@
|
||||
2005-09-26 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #786]
|
||||
* malloc/malloc.c (_int_realloc): Make error message clearer.
|
||||
|
||||
[BZ #713]
|
||||
* libio/iofgets.c: Treat N==1 correctly.
|
||||
* libio/iofgets_u.c: Likewise.
|
||||
|
@ -4618,7 +4618,7 @@ _int_realloc(mstate av, Void_t* oldmem, size_t bytes)
|
||||
if (__builtin_expect (oldp->size <= 2 * SIZE_SZ, 0)
|
||||
|| __builtin_expect (oldsize >= av->system_mem, 0))
|
||||
{
|
||||
errstr = "realloc(): invalid size";
|
||||
errstr = "realloc(): invalid old size";
|
||||
goto errout;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user