Skip to content
Snippets Groups Projects
Commit f8f003f1 authored by Nick Clifton's avatar Nick Clifton
Browse files

PR 10143

        * config/bfin-parse.y (error): Use "%s" as format string for error
        message.
parent ce3c775b
No related branches found
No related tags found
No related merge requests found
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> 2009-05-26 Alan Modra <amodra@bigpond.net.au>
* dep-in.sed: Output one filename per line with all lines having * dep-in.sed: Output one filename per line with all lines having
......
...@@ -169,13 +169,13 @@ int yyerror (char *msg); ...@@ -169,13 +169,13 @@ int yyerror (char *msg);
void error (char *format, ...) void error (char *format, ...)
{ {
va_list ap; va_list ap;
char buffer[2000]; static char buffer[2000];
va_start (ap, format); va_start (ap, format);
vsprintf (buffer, format, ap); vsprintf (buffer, format, ap);
va_end (ap); va_end (ap);
as_bad (buffer); as_bad ("%s", buffer);
} }
int int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment