aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gas/macro.c b/gas/macro.c
index 615bfda..6bfce31 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -1250,9 +1250,7 @@ check_macro (const char *line, sb *expand,
if (is_name_ender (*s))
++s;
- copy = (char *) xmalloc (s - line + 1);
- memcpy (copy, line, s - line);
- copy[s - line] = '\0';
+ copy = xmemdup0 (line, s - line);
for (cls = copy; *cls != '\0'; cls ++)
*cls = TOLOWER (*cls);