show_error: Use literal format string
authorThomas White <taw@bitwiz.me.uk>
Mon, 23 Apr 2018 15:57:31 +0000 (17:57 +0200)
committerThomas White <taw@bitwiz.me.uk>
Mon, 23 Apr 2018 15:57:31 +0000 (17:57 +0200)
src/narrative_window.c

index 1d254b1..027281c 100644 (file)
@@ -66,7 +66,7 @@ static void show_error(NarrativeWindow *nw, const char *err)
        mw = gtk_message_dialog_new(GTK_WINDOW(nw->window),
                                    GTK_DIALOG_DESTROY_WITH_PARENT,
                                    GTK_MESSAGE_ERROR,
-                                   GTK_BUTTONS_CLOSE, err);
+                                   GTK_BUTTONS_CLOSE, "%s", err);
 
        g_signal_connect_swapped(mw, "response",
                                 G_CALLBACK(gtk_widget_destroy), mw);