Commit: opcodes/s390-mkopc.c: fix building with -Werror=format-security
Nick Clifton
nickc@redhat.com
Thu Dec 5 13:43:00 GMT 2013
Hi Guys,
I have checked in the small patch below to fix an error message
compiling opcodes/s390-mkopc.c with -Werror=format-security enabled.
Cheers
Nick
opcodes/ChangeLog
2013-12-05 Nick Clifton <nickc@redhat.com>
* s390-mkopc.c (dumpTable): Provide a format string to printf so
that compiling with -Werror=format-security does not produce an
error.
*** ../binutils-2.24.orig/opcodes/s390-mkopc.c 2013-12-05 13:06:00.082812690 +0000
--- opcodes/s390-mkopc.c 2013-12-05 13:13:40.206798138 +0000
*************** dumpTable (void)
*** 298,304 ****
int ix;
/* Write hash table entries (slots). */
! printf (file_header);
for (ix = 0; ix < no_ops; ix++)
{
--- 298,304 ----
int ix;
/* Write hash table entries (slots). */
! printf ("%s", file_header);
for (ix = 0; ix < no_ops; ix++)
{
More information about the Binutils
mailing list