Commit e851b373 by Aldy Hernandez Committed by Aldy Hernandez

* c-common.c (fname_as_string): Fix xcalloc to xmalloc.

From-SVN: r82384
parent 9e6f2e7d
2004-05-28 Aldy Hernandez <aldyh@redhat.com> 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. * testsuite/g++.dg/charset/function.cc: New.
* testsuite/gcc.dg/charset/function.c: New. * testsuite/gcc.dg/charset/function.c: New.
......
...@@ -1119,7 +1119,7 @@ fname_as_string (int pretty_p) ...@@ -1119,7 +1119,7 @@ fname_as_string (int pretty_p)
} }
else else
{ {
namep = (char *) xcalloc (strlen (name) + 1, sizeof (char)); namep = xmalloc (strlen (name) + 1);
namep = xstrdup (name); namep = xstrdup (name);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment