1 |
commit: f807e471d4e116943b4d7e0ddfad7b7173362609 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 4 16:49:25 2014 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 4 16:49:25 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=f807e471 |
7 |
|
8 |
Avoid gcc -Wformat-security warning, bug 512426. |
9 |
|
10 |
--- |
11 |
emacs/23.4/21_all_format-security.patch | 14 ++++++++++++++ |
12 |
1 file changed, 14 insertions(+) |
13 |
|
14 |
diff --git a/emacs/23.4/21_all_format-security.patch b/emacs/23.4/21_all_format-security.patch |
15 |
new file mode 100644 |
16 |
index 0000000..e49e6df |
17 |
--- /dev/null |
18 |
+++ b/emacs/23.4/21_all_format-security.patch |
19 |
@@ -0,0 +1,14 @@ |
20 |
+Avoid gcc -Wformat-security warning. |
21 |
+https://bugs.gentoo.org/512426 |
22 |
+ |
23 |
+--- emacs-23.4-orig/lib-src/movemail.c |
24 |
++++ emacs-23.4/lib-src/movemail.c |
25 |
+@@ -615,7 +615,7 @@ |
26 |
+ else if (s2) |
27 |
+ fprintf (stderr, s1, s2); |
28 |
+ else |
29 |
+- fprintf (stderr, s1); |
30 |
++ fprintf (stderr, "%s", s1); |
31 |
+ fprintf (stderr, "\n"); |
32 |
+ } |
33 |
+ |