[packages/xmlrpc-c] - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Sun Mar 3 19:14:01 CET 2013


commit 7ea337222cfd8bb6859884a398dffcb7ce176bf1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 3 19:13:57 2013 +0100

    - added format patch (fixes build with -Werror=format-security)

 xmlrpc-c-format.patch | 11 +++++++++++
 xmlrpc-c.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/xmlrpc-c.spec b/xmlrpc-c.spec
index 4a6f0f0..5101a19 100644
--- a/xmlrpc-c.spec
+++ b/xmlrpc-c.spec
@@ -15,6 +15,7 @@ Patch0:		%{name}-fastdep.patch
 Patch1:		%{name}-soname.patch
 Patch2:		%{name}-cflags.patch
 Patch3:		%{name}-cmake-fix.patch
+Patch4:		%{name}-format.patch
 # patches 10+ come from Fedora
 Patch10:	%{name}-cmake.patch
 Patch11:	%{name}-printf-size_t.patch
@@ -283,6 +284,7 @@ XML-RPC.
 %patch16 -p1
 %patch1 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 mkdir -p build
diff --git a/xmlrpc-c-format.patch b/xmlrpc-c-format.patch
new file mode 100644
index 0000000..7241f69
--- /dev/null
+++ b/xmlrpc-c-format.patch
@@ -0,0 +1,11 @@
+--- xmlrpc-c/src/xmlrpc_server_abyss.c.orig	2013-03-03 16:31:13.000000000 +0100
++++ xmlrpc-c/src/xmlrpc_server_abyss.c	2013-03-03 19:05:39.913991242 +0100
+@@ -776,7 +776,7 @@
+         ServerInit2(abyssServerP, &error);
+ 
+         if (error) {
+-            xmlrpc_faultf(envP, error);
++            xmlrpc_faultf(envP, "%s", error);
+             xmlrpc_strfree(error);
+         }
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmlrpc-c.git/commitdiff/7ea337222cfd8bb6859884a398dffcb7ce176bf1



More information about the pld-cvs-commit mailing list