summaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 0ec5abb5631..aa928de1341 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -361,8 +361,7 @@ gen_fake_label ()
char *labelstr;
SDB_GENERATE_FAKE (label, unnamed_struct_number);
unnamed_struct_number++;
- labelstr = (char *) permalloc (strlen (label) + 1);
- strcpy (labelstr, label);
+ labelstr = xstrdup (label);
return labelstr;
}