* config/bfin-parse.y (error): Use "%s" as format string for error
        message.
This commit is contained in:
Nick Clifton 2009-05-26 15:35:37 +00:00
parent ce3c775b8f
commit f8f003f13a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2009-05-26 Nick Clifton <nickc@redhat.com>
PR 10143
* config/bfin-parse.y (error): Use "%s" as format string for error
message.
2009-05-26 Alan Modra <amodra@bigpond.net.au>
* dep-in.sed: Output one filename per line with all lines having

View File

@ -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