commit f459679ee4dc41373899078a8649b41b2cb4667f
Author: Jakub Bogusz <[email protected]>
Date:   Sun Oct 21 17:22:57 2012 +0200

    - added format patch to workaround -Werror=format-security false positive

 recode-format.patch | 11 +++++++++++
 recode.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/recode.spec b/recode.spec
index a936787..a8aecc9 100644
--- a/recode.spec
+++ b/recode.spec
@@ -19,6 +19,7 @@ Patch7:               %{name}-debian-11.patch
 Patch8:                %{name}-gcc4_3.patch
 Patch9:                %{name}-bool.patch
 Patch10:       %{name}-ac.patch
+Patch11:       %{name}-format.patch
 URL:           http://recode.progiciels-bpi.ca/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake
@@ -77,6 +78,7 @@ Biblioteka statyczna librecode.
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 # duplicate of m4/*.m4 files
 %{__rm} acinclude.m4
diff --git a/recode-format.patch b/recode-format.patch
new file mode 100644
index 0000000..d2efdb4
--- /dev/null
+++ b/recode-format.patch
@@ -0,0 +1,11 @@
+--- recode-3.6/src/names.c.orig        2012-10-21 17:18:20.230127254 +0200
++++ recode-3.6/src/names.c     2012-10-21 17:20:09.311782629 +0200
+@@ -892,7 +892,7 @@
+           if (ucs2 >= 0)
+             printf (format, code);
+           else if (mnemonic || counter2 != 112)
+-            printf (blanks);
++            fputs (blanks, stdout);
+ 
+           if (mnemonic)
+             printf (counter2 == 112 ? " %s\n" : " %-3s", mnemonic);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/recode.git/commitdiff/f459679ee4dc41373899078a8649b41b2cb4667f

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to