diff options
Diffstat (limited to 'gas/config/tc-dlx.c')
-rw-r--r-- | gas/config/tc-dlx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-dlx.c b/gas/config/tc-dlx.c index 530e03c..a629533 100644 --- a/gas/config/tc-dlx.c +++ b/gas/config/tc-dlx.c @@ -246,8 +246,10 @@ s_proc (int end_p) char prepended. */ if (leading_char) { - if (asprintf (&label, "%c%s", leading_char, name)) - { /* Avoid warning */ } + unsigned len = strlen (name) + 1; + label = xmalloc (len + 1); + label[0] = leading_char; + memcpy (label + 1, name, len); } else label = name; |