diff options
author | David Edelsohn <edelsohn@gnu.org> | 2004-12-15 16:01:55 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2004-12-15 11:01:55 -0500 |
commit | 4586c5575b07cf7264179b939197f653774d71f0 (patch) | |
tree | 12cfe6ea9d9c016f229946b0ae440e2cb41fbdf4 /gcc/xcoffout.c | |
parent | a0f7568c0493cce24c4308fcc7e1baa5533a913f (diff) | |
download | gcc-4586c5575b07cf7264179b939197f653774d71f0.zip gcc-4586c5575b07cf7264179b939197f653774d71f0.tar.gz gcc-4586c5575b07cf7264179b939197f653774d71f0.tar.bz2 |
* xcoffout.c (xcoffout_declare_function): Change strncpy to memcpy.
From-SVN: r92202
Diffstat (limited to 'gcc/xcoffout.c')
-rw-r--r-- | gcc/xcoffout.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |