]> git.pld-linux.org Git - packages/courier.git/commitdiff
- fix build with -Werror=format-security
authorMarcin Krol <hawk@tld-linux.org>
Thu, 8 Aug 2013 08:12:13 +0000 (08:12 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 8 Aug 2013 08:12:13 +0000 (08:12 +0000)
courier-werror.patch [new file with mode: 0644]

diff --git a/courier-werror.patch b/courier-werror.patch
new file mode 100644 (file)
index 0000000..d13262e
--- /dev/null
@@ -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\">&nbsp;</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);
+                               }
+                       }
This page took 0.073172 seconds and 4 git commands to generate.