]> git.pld-linux.org Git - packages/xmlrpc-epi.git/commitdiff
- fix building with -Wformat-security auto/th/xmlrpc-epi-0.54.1-4
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 13 Nov 2012 17:41:39 +0000 (18:41 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 13 Nov 2012 17:41:39 +0000 (18:41 +0100)
- rel 4

format-security.patch [new file with mode: 0644]
xmlrpc-epi.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..ba3dafe
--- /dev/null
@@ -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);
+      }
+   }
index c83895bff6805982ff1fd7527f1ca40cffe0fea3..aea638aa4a0d519e853beb54fdd9397b6d369c06 100644 (file)
@@ -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}
This page took 0.160813 seconds and 4 git commands to generate.