From 4586c5575b07cf7264179b939197f653774d71f0 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 15 Dec 2004 16:01:55 +0000 Subject: * xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy. From-SVN: r92202 --- gcc/xcoffout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/xcoffout.c') diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c index a2d8a33..f2b8a3f 100644 --- a/gcc/xcoffout.c +++ b/gcc/xcoffout.c @@ -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; } -- cgit v1.1