From: Joey Hess Date: Fri, 10 Jul 2009 02:54:23 +0000 (-0400) Subject: Patch from Anssi Hannula to avoid warnings when compiling with -Werror=format-security. X-Git-Tag: 2.48~8 X-Git-Url: http://git.ieval.ro/?p=filters.git;a=commitdiff_plain;h=9a251f025acb9f5b7df2753fd5c3828e947d5e59 Patch from Anssi Hannula to avoid warnings when compiling with -Werror=format-security. --- diff --git a/debian/changelog b/debian/changelog index 624642e..df331be 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 a8ee14c..dc2ce76 100644 --- 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"); %% diff --git a/newspeak.l b/newspeak.l index 20524e5..ce0f573 100644 --- a/newspeak.l +++ b/newspeak.l @@ -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"); %{