diff options
author | Mark Mitchell <mmitchell@usa.net> | 1998-04-21 21:55:45 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-04-21 21:55:45 +0000 |
commit | fb1653e1f8e1cc935ea9f84112a3933362a53bdf (patch) | |
tree | 23ef9209074a7de0bb96e15ca5a59a0515fd07a1 | |
parent | 1c2c795e9785b1db097d9d7c656d62e75f785c56 (diff) | |
download | gcc-fb1653e1f8e1cc935ea9f84112a3933362a53bdf.zip gcc-fb1653e1f8e1cc935ea9f84112a3933362a53bdf.tar.gz gcc-fb1653e1f8e1cc935ea9f84112a3933362a53bdf.tar.bz2 |
* errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory.
From-SVN: r19367
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/errfn.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 104a50e..dc23099 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c index 0bb67a3..2b97cdb 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++; |