]> iEval git - filters.git/commitdiff
Patch from Anssi Hannula to avoid warnings when compiling with -Werror=format-security.
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 10 Jul 2009 02:54:23 +0000 (22:54 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 10 Jul 2009 02:54:23 +0000 (22:54 -0400)
debian/changelog
ken.l
newspeak.l

index 624642ecb76e22d420509d9a8c73ba13ec2dd608..df331be28f3a749e33f0b2706c2f4f8df6373055 100644 (file)
@@ -1,3 +1,10 @@
+filters (2.47) UNRELEASED; urgency=low
+
+  * Patch from Anssi Hannula to avoid warnings when
+    compiling with -Werror=format-security.
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 09 Jul 2009 22:53:42 -0400
+
 filters (2.46) unstable; urgency=low
 
   * fanboy: Improve docs and remove from SAMPLES. Closes: #496588
diff --git a/ken.l b/ken.l
index a8ee14c98e18a5304a999e80e61fc82295f82ba0..dc2ce76237bbcae851b92c8b3f4c356e5c3acd2a 100644 (file)
--- a/ken.l
+++ b/ken.l
@@ -283,6 +283,6 @@ aw          printf("or");
                    case 5: ECHO; break;
                    }
                }
-.              printf(yytext);
+.              printf("%s", yytext);
 \n             printf("\n");
 %%
index 20524e550b7f1ef83a4fcd831fad558e08fca350..ce0f57314030ddf22c9e08c34071ff1b2d2f48d5 100644 (file)
@@ -586,7 +586,7 @@ robably|ventually|[Oo]bvious|[Bb]asic|{W}[Oo]nly|otally     |
 [.,!?]\"([^\n\".!]+[.!])?\n/[\n\t ]    printf("%c  Hail Big Brother!\"%s",Y0,yytext+2);
 \"([.,!?][^\n\".!]+[.!])?\n/[\n\t ]    printf("%c  Hail Big Brother!\"%s",Y1,yytext+2);
 
-.                      printf(yytext);
+.                      printf("%s", yytext);
 \n                     printf("\n");
 
 %{
This page took 0.037877 seconds and 4 git commands to generate.