From fb1653e1f8e1cc935ea9f84112a3933362a53bdf Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 21 Apr 1998 21:55:45 +0000 Subject: * errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory. From-SVN: r19367 --- gcc/cp/errfn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/errfn.c') 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++; -- cgit v1.1