diff options
author | Alan Modra <amodra@gmail.com> | 2006-11-22 03:35:36 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-11-22 03:35:36 +0000 |
commit | 5ab504f9065efc4b3727333d6f62d8f8a098d5b2 (patch) | |
tree | 73accdaba31db64a0ff05450e2eb618427848eab /gas/config/obj-elf.c | |
parent | 833fb04eb808edad319c938ef3b9a6918d3f9f15 (diff) | |
download | gdb-5ab504f9065efc4b3727333d6f62d8f8a098d5b2.zip gdb-5ab504f9065efc4b3727333d6f62d8f8a098d5b2.tar.gz gdb-5ab504f9065efc4b3727333d6f62d8f8a098d5b2.tar.bz2 |
* config/obj-elf.c (obj_elf_version): Use memcpy rather than strcpy.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r-- | gas/config/obj-elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 16d4e82..a9d34c4 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1,6 +1,6 @@ /* ELF object file format Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1456,7 +1456,7 @@ obj_elf_version (int ignore ATTRIBUTE_UNUSED) p = frag_more (sizeof (e_note.type)); md_number_to_chars (p, i_note.type, sizeof (e_note.type)); p = frag_more (len); - strcpy (p, name); + memcpy (p, name, len); frag_align (2, 0, 0); |