[packages/gnome-applets] - fix -Wformat-security errors

baggins baggins at pld-linux.org
Mon Oct 15 16:56:05 CEST 2012


commit 43a9b47130d82a1ad4f723e42be6ef0534cb69eb
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 15 16:55:50 2012 +0200

    - fix -Wformat-security errors

 format-security.patch | 11 +++++++++++
 gnome-applets.spec    |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/gnome-applets.spec b/gnome-applets.spec
index 0c80171..73b3f1f 100644
--- a/gnome-applets.spec
+++ b/gnome-applets.spec
@@ -4,7 +4,7 @@ Summary(ru.UTF-8):	Маленькие программы, встраивающи
 Summary(uk.UTF-8):	Маленькі програми, що вбудовуються в панель GNOME
 Name:		gnome-applets
 Version:	3.5.92
-Release:	1
+Release:	1.1
 Epoch:		1
 License:	GPL v2, FDL
 Group:		X11/Applications
@@ -12,6 +12,7 @@ Source0:	http://ftp.gnome.org/pub/GNOME/sources/gnome-applets/3.5/%{name}-%{vers
 # Source0-md5:	e38a776431e648a2932fa5c6ebff40a4
 # check paths in Makefile before removing it!
 Patch0:		%{name}-m4_fix.patch
+Patch1:		format-security.patch
 URL:		http://www.gnome.org/
 BuildRequires:	GConf2-devel >= 2.26.0
 BuildRequires:	NetworkManager-devel >= 0.7
@@ -383,6 +384,7 @@ ale jest przydatny o tyle, że panele są zawsze widoczne.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__gnome_doc_prepare}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..6007f91
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- gnome-applets-3.5.92/mini-commander/src/preferences.c~	2012-09-19 23:46:37.000000000 +0200
++++ gnome-applets-3.5.92/mini-commander/src/preferences.c	2012-10-15 16:55:11.066420081 +0200
+@@ -415,7 +415,7 @@
+ 					           GTK_DIALOG_DESTROY_WITH_PARENT,
+ 					           GTK_MESSAGE_ERROR,
+ 					           GTK_BUTTONS_OK,
+-					           error_message);
++					           "%s", error_message);
+ 
+ 	    g_signal_connect (error_dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
+ 	    gtk_window_set_resizable (GTK_WINDOW (error_dialog), FALSE);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnome-applets.git/commitdiff/43a9b47130d82a1ad4f723e42be6ef0534cb69eb



More information about the pld-cvs-commit mailing list