]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* errfn.c (cp_thing): Use xrealloc, not xmalloc, to copy memory.
authorMark Mitchell <mmitchell@usa.net>
Tue, 21 Apr 1998 21:55:45 +0000 (21:55 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 21 Apr 1998 21:55:45 +0000 (21:55 +0000)
From-SVN: r19367

gcc/cp/ChangeLog
gcc/cp/errfn.c

index 104a50e84cd2f7f54b00d01c1ed41341e9d85bef..dc23099536cf4f112a59a39945c2cf3a8d67107e 100644 (file)
@@ -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.
index 0bb67a34e4522cd28de5aeaf93e624b63f25be9b..2b97cdbf62a34af2b446ae7538ec10d7a976da8b 100644 (file)
@@ -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++;