* errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory.
From-SVN: r19367
This commit is contained in:
parent
1c2c795e97
commit
fb1653e1f8
|
@ -1,3 +1,7 @@
|
|||
Tue Apr 21 22:00:04 1998 Mark Mitchell <mmitchell@usa.net>
|
||||
|
||||
* errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory.
|
||||
|
||||
Tue Apr 21 18:59:11 1998 Benjamin Kosnik <bkoz@rhino.cygnus.com>
|
||||
|
||||
* decl.c (duplicate_decls): Only check DECL_FRIEND_P if function.
|
||||
|
|
|
@ -158,7 +158,7 @@ cp_thing (errfn, atarg1, format, ap)
|
|||
if (len > buflen)
|
||||
{
|
||||
buflen = len;
|
||||
buf = xmalloc (len);
|
||||
buf = xrealloc (buf, len);
|
||||
}
|
||||
sprintf (buf + offset, "%d", va_arg (ap, int));
|
||||
nargs++;
|
||||
|
|
Loading…
Reference in New Issue