aboutsummaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/xcoffout.c')
-rw-r--r--gcc/xcoffout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index ee6e3ada34e..7c03ca5b096 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -400,7 +400,7 @@ xcoffout_declare_function (FILE *file, tree decl, const char *name)
{
if (name[i] == '[')
{
- char *n = (char *) alloca (i + 1);
+ char *n = alloca (i + 1);
strncpy (n, name, i);
n[i] = '\0';
name = n;