From e851b37384697a3f27e7a6eca391d25fc8ce9b60 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Fri, 28 May 2004 22:05:45 +0000 Subject: [PATCH] * c-common.c (fname_as_string): Fix xcalloc to xmalloc. From-SVN: r82384 --- gcc/ChangeLog | 4 ++++ gcc/c-common.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.30.2