goffice r2268 - in trunk/goffice: app gtk



Author: mortenw
Date: Sat Nov  8 15:27:55 2008
New Revision: 2268
URL: http://svn.gnome.org/viewvc/goffice?rev=2268&view=rev

Log:
Leftover from 559291



Modified:
   trunk/goffice/app/file.c
   trunk/goffice/gtk/go-image-sel.c
   trunk/goffice/gtk/goffice-gtk.c

Modified: trunk/goffice/app/file.c
==============================================================================
--- trunk/goffice/app/file.c	(original)
+++ trunk/goffice/app/file.c	Sat Nov  8 15:27:55 2008
@@ -687,7 +687,7 @@
 			const char *msg = _("Saving over old files of this type is disabled for safety.");
 
 			if (!gsf_output_error (output))
-				gsf_output_set_error (output, 0, msg);
+				gsf_output_set_error (output, 0, "%s", msg);
 
 			g_free (file_name);
 

Modified: trunk/goffice/gtk/go-image-sel.c
==============================================================================
--- trunk/goffice/gtk/go-image-sel.c	(original)
+++ trunk/goffice/gtk/go-image-sel.c	Sat Nov  8 15:27:55 2008
@@ -80,7 +80,7 @@
 	image = go_image_new_from_file (filename, &error);
 	g_free (filename);
 	if (error) {
-		g_warning (error->message);
+		g_warning ("%s", error->message);
 		g_error_free (error);
 		error = NULL;
 	}

Modified: trunk/goffice/gtk/goffice-gtk.c
==============================================================================
--- trunk/goffice/gtk/goffice-gtk.c	(original)
+++ trunk/goffice/gtk/goffice-gtk.c	Sat Nov  8 15:27:55 2008
@@ -922,7 +922,7 @@
 			 GTK_DIALOG_DESTROY_WITH_PARENT,
 			 GTK_MESSAGE_WARNING,
 			 GTK_BUTTONS_OK_CANCEL,
-			 msg);
+			 "%s", msg);
 		gtk_dialog_set_default_response (GTK_DIALOG (dialog),
 			overwrite_by_default ? GTK_RESPONSE_OK : GTK_RESPONSE_CANCEL);
 		result = GTK_RESPONSE_OK ==



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