gnome-games r7973 - trunk/gnomine



Author: chpe
Date: Wed Oct  8 20:01:54 2008
New Revision: 7973
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7973&view=rev

Log:
Printf a literal string with %s. Fixes build with -Wformat-security

Modified:
   trunk/gnomine/minefield.c

Modified: trunk/gnomine/minefield.c
==============================================================================
--- trunk/gnomine/minefield.c	(original)
+++ trunk/gnomine/minefield.c	Wed Oct  8 20:01:54 2008
@@ -231,14 +231,14 @@
       GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (mfield)));
     warning_dialog =
       gtk_message_dialog_new (parent, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR,
-			      GTK_BUTTONS_NONE, _("Could not load images"));
+			      GTK_BUTTONS_NONE, "%s", _("Could not load images"));
 
     gtk_dialog_add_button (GTK_DIALOG (warning_dialog),
 			   GTK_STOCK_QUIT, GTK_RESPONSE_CLOSE);
 
     gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG
 					      (warning_dialog),
-					      warning_message);
+					      "%s", warning_message);
     g_signal_connect (warning_dialog, "response", G_CALLBACK (gtk_main_quit),
 		      NULL);
     gtk_widget_show (warning_dialog);



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