* c-common.c (fname_as_string): Fix xcalloc to xmalloc.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 28 May 2004 22:05:45 +0000 (22:05 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 28 May 2004 22:05:45 +0000 (22:05 +0000)
From-SVN: r82384

gcc/ChangeLog
gcc/c-common.c

index a5ed97f3dc387e20305ff9c401627565e425328d..d6b005856c54a3f980da0f3463043e5dff92f502 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-28  Aldy Hernandez  <aldyh@redhat.com>
+
+       * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
+
 2004-05-28  Aldy Hernandez  <aldyh@redhat.com>
 
        * testsuite/g++.dg/charset/function.cc: New.
index 3cf1baa7a8eb6417469819fa6a85df2a155ca595..c144787503d31e3a28ac1ea79bad934b4411aeab 100644 (file)
@@ -1119,7 +1119,7 @@ fname_as_string (int pretty_p)
     }
   else
     {
-      namep = (char *) xcalloc (strlen (name) + 1, sizeof (char));
+      namep = xmalloc (strlen (name) + 1);
       namep = xstrdup (name);
     }