bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH mig] Fix format string build failure with _FORTIFY_SOURCE=2


From: Guillem Jover
Subject: [PATCH mig] Fix format string build failure with _FORTIFY_SOURCE=2
Date: Sun, 1 Jul 2012 11:13:28 +0200

* 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

[Prev in Thread] Current Thread [Next in Thread]