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

rpms/gedit/FC-4 gedit-2.10.2-pass-format-string.patch,NONE,1.1



Author: rstrode

Update of /cvs/dist/rpms/gedit/FC-4
In directory cvs.devel.redhat.com:/tmp/cvs-serv25406

Added Files:
	gedit-2.10.2-pass-format-string.patch 
Log Message:
add patch


gedit-2.10.2-pass-format-string.patch:
 gedit-file-selector-util.c |    4 ++--
 gedit-file.c               |    6 +++---
 gedit-io-error-dialogs.c   |   17 +++++++++--------
 gedit-utils.c              |    2 +-
 4 files changed, 15 insertions(+), 14 deletions(-)

--- NEW FILE gedit-2.10.2-pass-format-string.patch ---
--- gedit-2.10.2/gedit/gedit-io-error-dialogs.c.pass-format-string	2005-01-19 05:55:03.000000000 -0500
+++ gedit-2.10.2/gedit/gedit-io-error-dialogs.c	2005-06-07 13:17:33.000000000 -0400
@@ -348,10 +348,10 @@
 					 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_ERROR,
 					 GTK_BUTTONS_OK,
-					 error_message);
+					 "%s", error_message);
 
 	if (message_details != NULL)
-		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", 
 							  message_details);
 
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
@@ -563,10 +563,10 @@
 					 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_ERROR,
 					 GTK_BUTTONS_OK,
-					 error_message);
+					 "%s", error_message);
 
 	if (message_details != NULL)
-		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s",
 							  message_details);
 
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
@@ -611,10 +611,10 @@
 					 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_ERROR,
 					 GTK_BUTTONS_OK,
-					 error_message);
+					 "%s", error_message);
 
 	if (error->message != NULL && strcmp (error->message, " ") != 0)
-		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s",
 							  error->message);
 
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
@@ -698,11 +698,12 @@
 	dialog = gtk_message_dialog_new (parent,
 					 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_ERROR,
-					 GTK_BUTTONS_OK,
+					 GTK_BUTTONS_OK,
+					 "%s",
 					 error_message);
 
 	if (message_details != NULL)
-		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+		gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s",
 							  message_details);
 
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
--- gedit-2.10.2/gedit/gedit-file-selector-util.c.pass-format-string	2005-06-07 13:15:34.000000000 -0400
+++ gedit-2.10.2/gedit/gedit-file-selector-util.c	2005-06-07 13:15:34.000000000 -0400
@@ -102,9 +102,9 @@
 					 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_QUESTION,
 					 GTK_BUTTONS_NONE,
-					 message_with_uri);
+					 "%s", message_with_uri);
 	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-						  secondary_message);
+						  "%s", secondary_message);
 
 	g_free (message_with_uri);
 
--- gedit-2.10.2/gedit/gedit-file.c.pass-format-string	2005-06-07 13:15:34.000000000 -0400
+++ gedit-2.10.2/gedit/gedit-file.c	2005-06-07 13:15:34.000000000 -0400
@@ -617,9 +617,9 @@
 					 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					 GTK_MESSAGE_QUESTION,
 					 GTK_BUTTONS_NONE,
-					 primary_msg);
+					 "%s", primary_msg);
 	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-						  secondary_msg);
+						  "%s", secondary_msg);
 	g_free (primary_msg);
 	g_free (secondary_msg);
 
@@ -841,7 +841,7 @@
 				GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 			   	GTK_MESSAGE_ERROR,
 			   	GTK_BUTTONS_OK,
-				errstr);
+				"%s", errstr);
 
 		gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
 
--- gedit-2.10.2/gedit/gedit-utils.c.pass-format-string	2005-03-08 08:07:51.000000000 -0500
+++ gedit-2.10.2/gedit/gedit-utils.c	2005-06-07 13:15:34.000000000 -0400
@@ -598,7 +598,7 @@
 			GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 		   	GTK_MESSAGE_ERROR,
 		   	GTK_BUTTONS_OK,
-			str);
+			"%s", str);
 
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
 


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