[gnome-applets] Fix format security warning



commit 0dbb5afde31aa279c42429da03680794ec16cae7
Author: Gotz Waschk <waschk mandriva org>
Date:   Wed Feb 24 12:50:19 2010 +0000

    Fix format security warning
    
    https://bugzilla.gnome.org/show_bug.cgi?id=610950

 battstat/battstat_applet.c |    4 ++--
 gweather/gweather-applet.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index 2a31d76..42c1ae6 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -342,7 +342,7 @@ battstat_error_dialog( GtkWidget *applet, const char *msg )
   GtkWidget *dialog;
 
   dialog = gtk_message_dialog_new( NULL, 0, GTK_MESSAGE_ERROR,
-                                   GTK_BUTTONS_OK, msg);
+                                   GTK_BUTTONS_OK, "%s", msg);
 
   gtk_window_set_screen( GTK_WINDOW (dialog),
                          gtk_widget_get_screen (GTK_WIDGET (applet)) );
@@ -440,7 +440,7 @@ battery_full_notify (GtkWidget *applet)
 	
 	if (error)
 	{
-	   g_warning (error->message);
+	   g_warning ("%s", error->message);
 	   g_error_free (error);
 	}
 
diff --git a/gweather/gweather-applet.c b/gweather/gweather-applet.c
index 8d86ec0..09044ca 100644
--- a/gweather/gweather-applet.c
+++ b/gweather/gweather-applet.c
@@ -471,7 +471,7 @@ update_finish (WeatherInfo *info, gpointer data)
 		   	 notify_notification_show (n, &error);
 			 if (error)
 			 {
-				 g_warning (error->message);
+				 g_warning ("%s", error->message);
 				 g_error_free (error);
 			 }
 		   	     



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]