[packages/tomoe] - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Tue Nov 13 17:23:44 CET 2012


commit fb2ea8b8e6bb43080bff741e028b1af410f3d810
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Nov 13 17:23:47 2012 +0100

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

 tomoe-format.patch | 11 +++++++++++
 tomoe.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/tomoe.spec b/tomoe.spec
index 36ff990..8531515 100644
--- a/tomoe.spec
+++ b/tomoe.spec
@@ -18,6 +18,7 @@ Patch1:		%{name}-bz502662.patch
 Patch2:		%{name}-svn-libs.patch
 Patch3:		%{name}-glib2.32.patch
 Patch4:		%{name}-ruby.patch
+Patch5:		%{name}-format.patch
 URL:		http://tomoe.sourceforge.jp/
 BuildRequires:	apr-util-devel
 BuildRequires:	autoconf >= 2.57
@@ -176,6 +177,7 @@ Plik nagłówkowy biblioteki Ruby/Tomoe.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__sed} -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' data/xml2est.rb
 
diff --git a/tomoe-format.patch b/tomoe-format.patch
new file mode 100644
index 0000000..9f8c589
--- /dev/null
+++ b/tomoe-format.patch
@@ -0,0 +1,11 @@
+--- tomoe-0.6.0/lib/tomoe-xml-parser.c.orig	2012-11-13 16:07:39.936025612 +0100
++++ tomoe-0.6.0/lib/tomoe-xml-parser.c	2012-11-13 17:22:39.095836800 +0100
+@@ -82,7 +82,7 @@
+ 
+     *error = g_error_new (G_MARKUP_ERROR,
+                           G_MARKUP_ERROR_INVALID_CONTENT,
+-                          buf);
++                          "%s", buf);
+ }
+ 
+ static void
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tomoe.git/commitdiff/fb2ea8b8e6bb43080bff741e028b1af410f3d810



More information about the pld-cvs-commit mailing list