* errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory.

From-SVN: r19367
This commit is contained in:
Mark Mitchell 1998-04-21 21:55:45 +00:00 committed by Mark Mitchell
parent 1c2c795e97
commit fb1653e1f8
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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++;