[packages/ipxripd] Fix build with -Werror=format-security

megabajt megabajt at pld-linux.org
Sat Feb 16 12:09:15 CET 2013


commit c0bef2c8560a7ad8ce53f0a7712d7f27a0bff048
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date:   Sat Feb 16 12:08:47 2013 +0100

    Fix build with -Werror=format-security

 ipxripd-format-security.patch | 11 +++++++++++
 ipxripd.spec                  |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/ipxripd.spec b/ipxripd.spec
index f6d9b7c..3636c8c 100644
--- a/ipxripd.spec
+++ b/ipxripd.spec
@@ -14,6 +14,7 @@ Source3:	%{name}.logrotate
 Patch0:		%{name}-glibc2.1.patch
 Patch1:		%{name}-gcc33.patch
 Patch2:		%{name}-kernel26.patch
+Patch3:		%{name}-format-security.patch
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts >= 0.2.0
@@ -40,6 +41,7 @@ IPX.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__make} \
diff --git a/ipxripd-format-security.patch b/ipxripd-format-security.patch
new file mode 100644
index 0000000..dcdf5a7
--- /dev/null
+++ b/ipxripd-format-security.patch
@@ -0,0 +1,11 @@
+--- ipxripd/ipxsap.c.formatsec	2013-02-16 12:06:38.549069871 +0100
++++ ipxripd/ipxsap.c	2013-02-16 12:07:02.612272842 +0100
+@@ -229,7 +229,7 @@ ipx_sap_fprint_name(FILE * file, char *s
+ 	name[IPX_SAP_SERVER_NAME_LEN] = 0;
+ 	len = strlen(name);
+ 	memset(name + len, ' ', IPX_SAP_SERVER_NAME_LEN - len);
+-	fprintf(file, name);
++	fputs(name, file);
+ }
+ 
+ static void 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ipxripd.git/commitdiff/c0bef2c8560a7ad8ce53f0a7712d7f27a0bff048



More information about the pld-cvs-commit mailing list