* parser.y (yyerror): Use a format string instead of directly passing
the argument to error.
---
 parser.y |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 }
 %}
 
-- 
1.7.10


Reply via email to