diff options
author | Alan Modra <amodra@gmail.com> | 2006-04-27 01:19:35 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-04-27 01:19:35 +0000 |
commit | f05742e6724d73e0f4ae70e366eef82d6d763124 (patch) | |
tree | 88c89ce349d8b1e1a83f936b7bdb8ddb049d4258 /bfd/coff-rs6000.c | |
parent | c43d0edc54773d26c955d9b1d5d7b8d9d9f344a4 (diff) | |
download | gdb-f05742e6724d73e0f4ae70e366eef82d6d763124.zip gdb-f05742e6724d73e0f4ae70e366eef82d6d763124.tar.gz gdb-f05742e6724d73e0f4ae70e366eef82d6d763124.tar.bz2 |
* coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix.
Diffstat (limited to 'bfd/coff-rs6000.c')
-rw-r--r-- | bfd/coff-rs6000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 220edf8..951587f 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -1,5 +1,5 @@ /* BFD back-end for IBM RS/6000 "XCOFF" files. - Copyright 1990-1999, 2000, 2001, 2002, 2003, 2004, 2005 + Copyright 1990-1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. FIXME: Can someone provide a transliteration of this name into ASCII? Using the following chars caused a compiler warning on HIUX (so I replaced @@ -2083,7 +2083,7 @@ xcoff_write_archive_contents_old (abfd) char decbuf[XCOFFARMAG_ELEMENT_SIZE + 1]; memset (&fhdr, 0, sizeof fhdr); - strncpy (fhdr.magic, XCOFFARMAG, SXCOFFARMAG); + (void) strncpy (fhdr.magic, XCOFFARMAG, SXCOFFARMAG); sprintf (fhdr.firstmemoff, "%d", SIZEOF_AR_FILE_HDR); sprintf (fhdr.freeoff, "%d", 0); |