From: Alan Modra Date: Thu, 27 Apr 2006 01:19:35 +0000 (+0000) Subject: * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f05742e6724d73e0f4ae70e366eef82d6d763124;p=binutils-gdb.git * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1f1fafaf076..cf384376f35 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2006-04-27 Alan Modra + + * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix. + 2006-04-26 H.J. Lu PR binutils/2593 diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 220edf8809c..951587f99b1 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);