commit:     f807e471d4e116943b4d7e0ddfad7b7173362609
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  4 16:49:25 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Jun  4 16:49:25 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=f807e471

Avoid gcc -Wformat-security warning, bug 512426.

---
 emacs/23.4/21_all_format-security.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/emacs/23.4/21_all_format-security.patch 
b/emacs/23.4/21_all_format-security.patch
new file mode 100644
index 0000000..e49e6df
--- /dev/null
+++ b/emacs/23.4/21_all_format-security.patch
@@ -0,0 +1,14 @@
+Avoid gcc -Wformat-security warning.
+https://bugs.gentoo.org/512426
+
+--- emacs-23.4-orig/lib-src/movemail.c
++++ emacs-23.4/lib-src/movemail.c
+@@ -615,7 +615,7 @@
+   else if (s2)
+     fprintf (stderr, s1, s2);
+   else
+-    fprintf (stderr, s1);
++    fprintf (stderr, "%s", s1);
+   fprintf (stderr, "\n");
+ }
+ 

Reply via email to