From 9a251f025acb9f5b7df2753fd5c3828e947d5e59 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 9 Jul 2009 22:54:23 -0400 Subject: [PATCH] Patch from Anssi Hannula to avoid warnings when compiling with -Werror=format-security. --- debian/changelog | 7 +++++++ ken.l | 2 +- newspeak.l | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) 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"); %{ -- 2.30.2