summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2012-05-01 22:26:20 +0100
committerAleks Kissinger <aleks0@gmail.com>2012-05-01 22:26:20 +0100
commitec48fc2bcce2483d89eb51a185c5826a8fcc7c6c (patch)
tree2c3f8ef6995865c3c662a92e5ac32dfbd774dc03
parentbdb0f502bb82a35d4e3aba3fae3154b679aadf35 (diff)
fixed gtk_message_dialog_new to use constant format string
-rw-r--r--tikzit/src/gtk/MainWindow.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/tikzit/src/gtk/MainWindow.m b/tikzit/src/gtk/MainWindow.m
index 0043137..9dd4941 100644
--- a/tikzit/src/gtk/MainWindow.m
+++ b/tikzit/src/gtk/MainWindow.m
@@ -756,7 +756,7 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
- [message UTF8String]);
+ "%s", [message UTF8String]);
gtk_window_set_title(GTK_WINDOW(dialog), "Close current document?");
proceed = gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES;
gtk_widget_destroy (dialog);