[packages/gtk+] - fix format string errors

baggins baggins at pld-linux.org
Sun Jan 4 10:40:37 CET 2015


commit f26b6029c9ba4835d421f0cbccfa3e9e799e527e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jan 4 09:40:28 2015 +0000

    - fix format string errors

 format-security.patch | 20 ++++++++++++++++++++
 gtk+.spec             |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/gtk+.spec b/gtk+.spec
index 1643abe..674c276 100644
--- a/gtk+.spec
+++ b/gtk+.spec
@@ -32,6 +32,7 @@ Patch6:		%{name}-ac_fix.patch
 Patch7:		%{name}-localenames.patch
 Patch8:		%{name}-link.patch
 Patch9:		%{name}-am18.patch
+Patch10:	format-security.patch
 URL:		http://www.gtk.org/
 BuildRequires:	autoconf >= 2.59-9
 BuildRequires:	automake >= 1:1.7
@@ -179,6 +180,7 @@ públicas.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 mv -f po/{no,nb}.po
 mv -f po/{sr,sr at Latn}.po
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..53ab002
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,20 @@
+--- gtk+-1.2.10/gtk/gtkthemes.c~	2000-01-21 23:22:50.000000000 +0000
++++ gtk+-1.2.10/gtk/gtkthemes.c	2015-01-04 09:36:39.020100447 +0000
+@@ -90,7 +90,7 @@
+        g_free(engine_path);
+        if (!library)
+ 	 {
+-	   g_warning (g_module_error());
++	   g_warning ("%s", g_module_error());
+ 	   return NULL;
+ 	 }
+        else
+@@ -107,7 +107,7 @@
+ 		!g_module_symbol (library, "theme_exit", 
+ 				  (gpointer *)&result->exit))
+ 	      {
+-		g_warning (g_module_error());
++		g_warning ("%s", g_module_error());
+ 		g_free (result);
+ 		return NULL;
+ 	      }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gtk+.git/commitdiff/f26b6029c9ba4835d421f0cbccfa3e9e799e527e



More information about the pld-cvs-commit mailing list