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 /gcc/cp/errfn.c | |
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
Diffstat (limited to 'gcc/cp/errfn.c')
-rw-r--r-- | gcc/cp/errfn.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |