gnome-games r7978 - trunk/gnibbles



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

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

Modified:
   trunk/gnibbles/gnibbles.c

Modified: trunk/gnibbles/gnibbles.c
==============================================================================
--- trunk/gnibbles/gnibbles.c	(original)
+++ trunk/gnibbles/gnibbles.c	Wed Oct  8 20:02:02 2008
@@ -73,7 +73,7 @@
   GtkWidget *w =
     gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL,
 			    GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
-			    message);
+			    "%s", message);
   gtk_dialog_run (GTK_DIALOG (w));
   gtk_widget_destroy (GTK_WIDGET (w));
   exit (1);



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