summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2012-07-01 09:41:03 -0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-07-01 09:41:03 -0300
commit7d6e8f1a4718e70724a3bdeb3dc3ad4c1e3897d7 (patch)
treefe8b1535b4c4be02e08be7997ad20e0b8ea234f3
parent41fd7888dc98d596c0e42aa3e049294e8198dd7a (diff)
Fix format string build failure with _FORTIFY_SOURCE=2
* parser.y (yyerror): Use a format string instead of directly passing the argument to error.
-rw-r--r--parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.y b/parser.y
index cc149da..ade56be 100644
--- a/parser.y
+++ b/parser.y
@@ -131,7 +131,7 @@ static const char *import_name(statement_kind_t sk);
void
yyerror(const char *s)
{
- error(s);
+ error("%s", s);
}
%}