From 8623518242840e022afef408357031aaa26b46ca Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 8 Aug 2013 08:12:13 +0000 Subject: [PATCH] - fix build with -Werror=format-security --- courier-werror.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 courier-werror.patch diff --git a/courier-werror.patch b/courier-werror.patch new file mode 100644 index 0000000..d13262e --- /dev/null +++ b/courier-werror.patch @@ -0,0 +1,24 @@ +diff -ur courier-0.71.orig/webmail/pcp.c courier-0.71/webmail/pcp.c +--- courier-0.71.orig/webmail/pcp.c 2011-04-04 13:03:52.000000000 +0000 ++++ courier-0.71/webmail/pcp.c 2013-08-08 07:18:41.645108559 +0000 +@@ -1518,7 +1518,7 @@ + printf(" "); + if (p->address && strcmp(p->address, "@")) + { +- printf(getarg("CONFLICTERR2")); ++ printf("%s", getarg("CONFLICTERR2")); + print_safe(p->address); + } + else +diff -ur courier-0.71.orig/webmail/sqwebmail.c courier-0.71/webmail/sqwebmail.c +--- courier-0.71.orig/webmail/sqwebmail.c 2011-04-04 13:03:52.000000000 +0000 ++++ courier-0.71/webmail/sqwebmail.c 2013-08-08 07:33:56.217108557 +0000 +@@ -1097,7 +1097,7 @@ + c=strchr(c, '.'); + if (c) + { +- printf(sep); ++ printf("%s", sep); + print_safe(c+1); + } + } -- 2.43.0