commit 67d0d95a32fc5718ed4307ad59bb94ff0611c447
Author: Jan Rękorajski <[email protected]>
Date:   Thu Dec 13 14:40:16 2012 +0100

    - fix format string warnings
    - rel 5

 format-security.patch | 22 ++++++++++++++++++++++
 w3m.spec              |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/w3m.spec b/w3m.spec
index 17d87e6..86c6646 100644
--- a/w3m.spec
+++ b/w3m.spec
@@ -7,7 +7,7 @@ Summary(pt_BR.UTF-8):   O w3m é um paginador, mas pode ser 
usado também como um
 Summary(tr.UTF-8):     Metin ekranda WWW tarayıcı
 Name:          w3m
 Version:       0.5.3
-Release:       4
+Release:       5
 Epoch:         1
 License:       MIT-like
 Group:         Applications/Networking
@@ -18,6 +18,7 @@ Patch1:               %{name}-nolibs.patch
 Patch2:                %{name}-0.5.3-parallel-make.patch
 Patch3:                %{name}-0.5.2-fix_gcc_error.patch
 Patch4:                %{name}-gc.patch
+Patch5:                format-security.patch
 URL:           http://w3m.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -87,6 +88,7 @@ na linuksowym framebufferze.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__sed} '/^AC_PROG_CXX$/d' -i configure.ac
 
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..279803b
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,22 @@
+--- w3m-0.5.3/acinclude.m4~    2011-01-04 10:22:18.000000000 +0100
++++ w3m-0.5.3/acinclude.m4     2012-12-13 14:38:14.767847657 +0100
+@@ -866,7 +866,7 @@
+ AC_TRY_COMPILE(
+ changequote(<<,>>)dnl
+ <<extern char *sys_errlist[];>>,
+-<<printf(sys_errlist[0]);>>,
++<<printf("%s", sys_errlist[0]);>>,
+ changequote([,])dnl
+ [have_sys_errlist="yes"; AC_DEFINE(HAVE_SYS_ERRLIST)],
+ [have_sys_errlist="no"])
+--- w3m-0.5.3/w3mbookmark.c~   2011-01-04 10:22:24.000000000 +0100
++++ w3m-0.5.3/w3mbookmark.c    2012-12-13 14:36:21.414518321 +0100
+@@ -99,7 +99,7 @@
+       fprintf(f, "<body>\n<h1>Bookmarks</h1>\n");
+       fprintf(f, "<h2>%s</h2>\n<ul>\n", section);
+       fprintf(f, "<li><a href=\"%s\">%s</a>\n", url, title);
+-      fprintf(f, end_section);
++      fprintf(f, "%s", end_section);
+       fprintf(f, "</ul>\n</body>\n</html>\n");
+       fclose(f);
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/w3m.git/commitdiff/67d0d95a32fc5718ed4307ad59bb94ff0611c447

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

Reply via email to