* config/tc-dlx.c (s_proc): Don't use asprintf.
[deliverable/binutils-gdb.git] / gas / config / tc-dlx.c
index 25841ed1eed2f9f7702ec961e3a91177335f29d7..a629533b93cc4bd1b239f601a4bee98ea5c49a8b 100644 (file)
@@ -245,7 +245,12 @@ s_proc (int end_p)
          /* Missing entry point, use function's name with the leading
             char prepended.  */
          if (leading_char)
-           asprintf (&label, "%c%s", leading_char, name);
+           {
+             unsigned len = strlen (name) + 1;
+             label = xmalloc (len + 1);
+             label[0] = leading_char;
+             memcpy (label + 1, name, len);
+           }
          else
            label = name;
        }
This page took 0.033212 seconds and 4 git commands to generate.