[memprof: 5/76] main.c: Format string. pass the string "%s", message



commit deefe057ef98a7a301d4777cdef53b6727736483
Author: Holger Hans Peter Freyther <zecke selfish org>
Date:   Thu Jun 4 12:49:11 2009 +0200

    main.c: Format string. pass the string "%s", message
    
    Better safe than sorry and pass the message with "%s". The usage
    so far was looking right but again, better safe than sorry.

 src/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 99c758b..9e02d51 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1351,7 +1351,7 @@ show_error (GtkWidget *parent_window,
 					 (error == ERROR_FATAL) ?
 					   GTK_MESSAGE_ERROR :
 					   GTK_MESSAGE_WARNING,
-					 GTK_BUTTONS_OK, message);
+					 GTK_BUTTONS_OK, "%s", message);
 	g_free (message);
 
 	gtk_window_set_title (GTK_WINDOW (dialog),
@@ -1715,7 +1715,7 @@ process_window_maybe_detach (ProcessWindow *pwin)
 					 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_QUESTION,
 					 GTK_BUTTONS_YES_NO,
-					 message);
+					 "%s", message);
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
 
 	response = gtk_dialog_run (GTK_DIALOG (dialog));



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