File: 01_fix-format-string.patch

package info (click to toggle)
squeeze 0.2.3-12
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,500 kB
  • sloc: ansic: 12,938; sh: 9,240; xml: 617; makefile: 193
file content (13 lines) | stat: -rw-r--r-- 660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/main_window.c b/src/main_window.c
index 98386c6..873c83a 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -1263,7 +1263,7 @@ cb_sq_main_window_archive_command_terminated(LSQArchive *archive, GError *error,
 
 	if(error)
 	{
-		GtkWidget *error_dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, error->message);
+		GtkWidget *error_dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, "%s", error->message);
 		gtk_dialog_run(GTK_DIALOG(error_dialog));
 		gtk_widget_destroy(error_dialog);
 	}