Commit fb1653e1 by Mark Mitchell Committed by Mark Mitchell

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

From-SVN: r19367
parent 1c2c795e
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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment