commit 150f255c830dfd43c0e2e8689dab176467514fd7
Author: Jakub Bogusz <[email protected]>
Date:   Mon Nov 5 20:09:28 2012 +0100

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

 glibc-format.patch | 33 +++++++++++++++++++++++++++++++++
 glibc.spec         |  4 ++--
 2 files changed, 35 insertions(+), 2 deletions(-)
---
diff --git a/glibc.spec b/glibc.spec
index 2d668f1..b3cae4a 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -64,7 +64,7 @@ Patch7:               1070_all_glibc-fadvise64_64.patch
 Patch8:                %{name}-missing-nls.patch
 Patch9:                %{name}-java-libc-wait.patch
 Patch10:       %{name}-info.patch
-
+Patch11:       %{name}-format.patch
 Patch12:       %{name}-rh-bug-769421.patch
 Patch14:       %{name}-sparc-errno_fix.patch
 Patch15:       %{name}-new-charsets.patch
@@ -925,7 +925,7 @@ mv %{name}-ports-%{ports_version} ports
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
-
+%patch11 -p1
 %patch12 -p1
 %patch14 -p0
 %patch15 -p1
diff --git a/glibc-format.patch b/glibc-format.patch
new file mode 100644
index 0000000..c37d00f
--- /dev/null
+++ b/glibc-format.patch
@@ -0,0 +1,33 @@
+--- glibc-2.16.0/sunrpc/rpc_hout.c.orig        2012-06-30 21:12:34.000000000 
+0200
++++ glibc-2.16.0/sunrpc/rpc_hout.c     2012-11-05 19:35:07.650720620 +0100
+@@ -579,7 +579,7 @@ pdeclaration (const char *name, declarat
+         break;
+       }
+     }
+-  f_print (fout, separator);
++  f_print (fout, "%s", separator);
+ }
+ 
+ static int
+--- glibc-2.16.0/sunrpc/rpc_main.c.orig        2012-11-05 19:29:09.910752451 
+0100
++++ glibc-2.16.0/sunrpc/rpc_main.c     2012-11-05 19:35:49.249302261 +0100
+@@ -647,7 +647,7 @@ h_output (const char *infile, const char
+     }
+   else if (tblflag)
+     {
+-      fprintf (fout, rpcgen_table_dcl);
++      fprintf (fout, "%s", rpcgen_table_dcl);
+     }
+ 
+   if (Cflag)
+--- glibc-2.16.0/sunrpc/rpc_svcout.c.orig      2012-11-05 19:45:54.353824657 
+0100
++++ glibc-2.16.0/sunrpc/rpc_svcout.c   2012-11-05 19:45:22.272347802 +0100
+@@ -353,7 +353,7 @@ write_real_program (const definition * d
+             f_print (fout, " (");
+             /* arg name */
+             if (proc->arg_num > 1)
+-              f_print (fout, proc->args.argname);
++              f_print (fout, "%s", proc->args.argname);
+             else
+               ptype (proc->args.decls->decl.prefix,
+                      proc->args.decls->decl.type, 0);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glibc.git/commitdiff/150f255c830dfd43c0e2e8689dab176467514fd7

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

Reply via email to