Commit 5e70898c by Richard Stallman

(bc_strdup): Don't use strcpy's value.

From-SVN: r5414
parent d591efa1
...@@ -9105,7 +9105,9 @@ static char * ...@@ -9105,7 +9105,9 @@ static char *
bc_strdup (s) bc_strdup (s)
char *s; char *s;
{ {
return strcpy (xmalloc ((strlen (s) + 1) * sizeof *s), s); char *new = (char *) xmalloc ((strlen (s) + 1) * sizeof *s);
strcpy (new, s);
return new;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment