Commit 4586c557 by David Edelsohn Committed by David Edelsohn

* xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.

From-SVN: r92202
parent a0f7568c
2004-12-15 David Edelsohn <edelsohn@gnu.org>
* xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.
2004-12-15 Ian Lance Taylor <ian@wasabisystems.com>
* config/arm/arm.c (arm_xscale_rtx_costs): Increase cost of
......
......@@ -413,7 +413,7 @@ xcoffout_declare_function (FILE *file, tree decl, const char *name)
if (name[len - 1] == ']')
{
char *n = alloca (len - 3);
strncpy (n, name, len - 4);
memcpy (n, name, len - 4);
n[len - 4] = '\0';
name = n;
}
......
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