From: Nick Clifton Date: Tue, 26 May 2009 15:35:37 +0000 (+0000) Subject: PR 10143 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8f003f13aac24930955c184cf0ad9d368b5f83e;p=binutils-gdb.git PR 10143 * config/bfin-parse.y (error): Use "%s" as format string for error message. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 6d46deb2995..664a2c0229e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2009-05-26 Nick Clifton + + PR 10143 + * config/bfin-parse.y (error): Use "%s" as format string for error + message. + 2009-05-26 Alan Modra * dep-in.sed: Output one filename per line with all lines having diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index 83cc68802ad..b39d5cdaae2 100644 --- a/gas/config/bfin-parse.y +++ b/gas/config/bfin-parse.y @@ -169,13 +169,13 @@ int yyerror (char *msg); void error (char *format, ...) { va_list ap; - char buffer[2000]; + static char buffer[2000]; va_start (ap, format); vsprintf (buffer, format, ap); va_end (ap); - as_bad (buffer); + as_bad ("%s", buffer); } int