[packages/courier] - fix build with -Werror=format-security

hawk hawk at pld-linux.org
Thu Aug 8 10:13:30 CEST 2013


commit 8623518242840e022afef408357031aaa26b46ca
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Thu Aug 8 08:12:13 2013 +0000

    - fix build with -Werror=format-security

 courier-werror.patch | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
---
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("</span></td><td width=\"30\"> </td><td width=\"100%%\"><span class=\"tt\">");
+ 			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);
+ 				}
+ 			}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/courier.git/commitdiff/cd234342c2c6437123d4fd4e4e7b242e2afdac49



More information about the pld-cvs-commit mailing list