commit c1533a7bc7a66b821f7e41c1d800d52313d85152
Author: Jan Rękorajski <[email protected]>
Date:   Tue Nov 13 18:41:39 2012 +0100

    - fix building with -Wformat-security
    - rel 4

 format-security.patch | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++
 xmlrpc-epi.spec       |  4 ++-
 2 files changed, 78 insertions(+), 1 deletion(-)
---
diff --git a/xmlrpc-epi.spec b/xmlrpc-epi.spec
index c83895b..aea638a 100644
--- a/xmlrpc-epi.spec
+++ b/xmlrpc-epi.spec
@@ -4,11 +4,12 @@ Summary:      XML-RPC EPI library - an implementation of the 
xmlrpc protocol
 Summary(pl.UTF-8):     Biblioteka XML-RPC EPI - implementacja protokołu xmlrpc
 Name:          xmlrpc-epi
 Version:       0.54.1
-Release:       3
+Release:       4
 License:       BSD
 Group:         Libraries
 Source0:       
http://downloads.sourceforge.net/xmlrpc-epi/%{name}-%{version}.tar.gz
 # Source0-md5: 546ce341e7d79691371344449cb9e484
+Patch0:                format-security.patch
 URL:           http://xmlrpc-epi.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -75,6 +76,7 @@ Programy przykładowe do biblioteki XML-RPC EPI.
 
 %prep
 %setup -q -n xmlrpc
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..ba3dafe
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,75 @@
+--- xmlrpc/sample/sample.c~    2008-03-21 20:52:51.000000000 +0100
++++ xmlrpc/sample/sample.c     2012-11-13 18:39:04.402378396 +0100
+@@ -450,7 +450,7 @@
+      char *outBuf = XMLRPC_REQUEST_ToXML(request, 0);
+ 
+      if(outBuf) {
+-        printf(outBuf);
++        puts(outBuf);
+         free(outBuf);
+      }
+   }
+@@ -460,7 +460,7 @@
+      char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+ 
+      if(outBuf) {
+-        printf(outBuf);
++        puts(outBuf);
+         free(outBuf);
+      }
+   }
+--- xmlrpc/sample/client.c~    2008-03-21 20:52:51.000000000 +0100
++++ xmlrpc/sample/client.c     2012-11-13 18:39:31.142377440 +0100
+@@ -177,7 +177,7 @@
+      char *outBuf = XMLRPC_REQUEST_ToXML(request, 0);
+ 
+      if(outBuf) {
+-        printf(outBuf);
++        puts(outBuf);
+         free(outBuf);
+      }
+   }
+--- xmlrpc/sample/server.c~    2008-04-02 12:35:12.000000000 +0200
++++ xmlrpc/sample/server.c     2012-11-13 18:39:54.042376644 +0100
+@@ -374,7 +374,7 @@
+      char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+ 
+      if(outBuf) {
+-        printf(outBuf);
++        puts(outBuf);
+         free(outBuf);
+      }
+   }
+--- xmlrpc/sample/server_compliance_test.c~    2008-04-02 12:35:13.000000000 
+0200
++++ xmlrpc/sample/server_compliance_test.c     2012-11-13 18:40:11.635709370 
+0100
+@@ -423,7 +423,7 @@
+       char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+ 
+       if(outBuf) {
+-         printf(outBuf);
++         puts(outBuf);
+          free(outBuf);
+       }
+    }
+--- xmlrpc/sample/hello_client.c~      2008-03-21 20:52:51.000000000 +0100
++++ xmlrpc/sample/hello_client.c       2012-11-13 18:40:31.885708628 +0100
+@@ -43,7 +43,7 @@
+      char *outBuf = XMLRPC_REQUEST_ToXML(request, 0);
+ 
+      if(outBuf) {
+-        printf(outBuf);
++        puts(outBuf);
+         free(outBuf);
+      }
+   }
+--- xmlrpc/sample/hello_server.c~      2008-04-02 12:35:12.000000000 +0200
++++ xmlrpc/sample/hello_server.c       2012-11-13 18:40:45.649041479 +0100
+@@ -76,7 +76,7 @@
+      char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+ 
+      if(outBuf) {
+-        printf(outBuf);
++        puts(outBuf);
+         free(outBuf);
+      }
+   }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xmlrpc-epi.git/commitdiff/c1533a7bc7a66b821f7e41c1d800d52313d85152

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

Reply via email to