Fix error: format not a string literal and no format arguments [-Werror=format-security]

This commit is contained in:
Andreas Rönnquist 2013-03-31 17:48:47 +02:00
parent f317076cb2
commit 8fb4bfb288

View File

@ -149,7 +149,7 @@ create_msg_dialog (gchar *title, gchar *message)
{ {
GtkWidget *dialog; GtkWidget *dialog;
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, message); dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, "%s", message);
gtk_window_set_title (GTK_WINDOW (dialog), title); gtk_window_set_title (GTK_WINDOW (dialog), title);
/* On Win32 we automatically have the icon. If we try to load it explicitly, it will look ugly for some reason. */ /* On Win32 we automatically have the icon. If we try to load it explicitly, it will look ugly for some reason. */