]> git.pld-linux.org Git - packages/ipxripd.git/commitdiff
Fix build with -Werror=format-security master
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sat, 16 Feb 2013 11:08:47 +0000 (12:08 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Sat, 16 Feb 2013 11:08:47 +0000 (12:08 +0100)
ipxripd-format-security.patch [new file with mode: 0644]
ipxripd.spec

diff --git a/ipxripd-format-security.patch b/ipxripd-format-security.patch
new file mode 100644 (file)
index 0000000..dcdf5a7
--- /dev/null
@@ -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 
index f6d9b7cbcabbb58eff6c722a2ecd1ac0e16ce8ce..3636c8c32eaf01968365096d471062bdd5ebc9f6 100644 (file)
@@ -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} \
This page took 0.112463 seconds and 4 git commands to generate.