From: Aldy Hernandez Date: Fri, 28 May 2004 22:05:45 +0000 (+0000) Subject: * c-common.c (fname_as_string): Fix xcalloc to xmalloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e851b37384697a3f27e7a6eca391d25fc8ce9b60;p=gcc.git * c-common.c (fname_as_string): Fix xcalloc to xmalloc. From-SVN: r82384 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5ed97f3dc3..d6b005856c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-05-28 Aldy Hernandez + + * c-common.c (fname_as_string): Fix xcalloc to xmalloc. + 2004-05-28 Aldy Hernandez * testsuite/g++.dg/charset/function.cc: New. diff --git a/gcc/c-common.c b/gcc/c-common.c index 3cf1baa7a8e..c144787503d 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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); }