From: Mark Mitchell Date: Tue, 21 Apr 1998 21:55:45 +0000 (+0000) Subject: * errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory. X-Git-Tag: prereleases/egcs-1.1-prerelease~1595 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb1653e1f8e1cc935ea9f84112a3933362a53bdf;p=thirdparty%2Fgcc.git * errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory. From-SVN: r19367 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 104a50e84cd2..dc23099536cf 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Tue Apr 21 22:00:04 1998 Mark Mitchell + + * errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory. + Tue Apr 21 18:59:11 1998 Benjamin Kosnik * decl.c (duplicate_decls): Only check DECL_FRIEND_P if function. diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c index 0bb67a34e452..2b97cdbf62a3 100644 --- a/gcc/cp/errfn.c +++ b/gcc/cp/errfn.c @@ -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++;