diff options
author | Nick Clifton <nickc@redhat.com> | 2009-05-26 15:35:37 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-05-26 15:35:37 +0000 |
commit | f8f003f13aac24930955c184cf0ad9d368b5f83e (patch) | |
tree | f99ff70d610965c628a57c36258d3ef2cf79eb82 /gas/config/bfin-parse.y | |
parent | ce3c775b8fa618c3002c7017de162f51d022960d (diff) | |
download | gdb-f8f003f13aac24930955c184cf0ad9d368b5f83e.zip gdb-f8f003f13aac24930955c184cf0ad9d368b5f83e.tar.gz gdb-f8f003f13aac24930955c184cf0ad9d368b5f83e.tar.bz2 |
PR 10143
* config/bfin-parse.y (error): Use "%s" as format string for error
message.
Diffstat (limited to 'gas/config/bfin-parse.y')
-rw-r--r-- | gas/config/bfin-parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index 83cc688..b39d5cd 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 |