[gnome-settings-daemon] automount: Silence two trivial -Wformat-security warnings



commit ae7bc67e35a4785f642e83bb3d40d43312fd2c72
Author: Richard Hughes <richard hughsie com>
Date:   Thu Aug 4 18:18:16 2011 +0100

    automount: Silence two trivial -Wformat-security warnings

 plugins/automount/gsd-automount-manager.c |    2 +-
 plugins/automount/gsd-autorun.c           |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/automount/gsd-automount-manager.c b/plugins/automount/gsd-automount-manager.c
index 0a35e7b..c6bb1ed 100644
--- a/plugins/automount/gsd-automount-manager.c
+++ b/plugins/automount/gsd-automount-manager.c
@@ -69,7 +69,7 @@ show_error_dialog (const char *primary_text,
 					 0,
 					 GTK_MESSAGE_ERROR,
 					 GTK_BUTTONS_OK,
-					 NULL);
+					 "%s", "");
 
 	g_object_set (dialog,
 		      "text", primary_text,
diff --git a/plugins/automount/gsd-autorun.c b/plugins/automount/gsd-autorun.c
index 6c5b79d..506d7f6 100644
--- a/plugins/automount/gsd-autorun.c
+++ b/plugins/automount/gsd-autorun.c
@@ -503,7 +503,9 @@ unmount_mount_callback (GObject *source_object,
 							 GTK_BUTTONS_OK,
 							 "%s",
 							 primary);
-			gtk_message_dialog_format_secondary_markup (GTK_MESSAGE_DIALOG (dialog), error->message);
+			gtk_message_dialog_format_secondary_markup (GTK_MESSAGE_DIALOG (dialog),
+								    "%s",
+								    error->message);
 			
 			gtk_widget_show (GTK_WIDGET (dialog));
 			g_signal_connect (dialog, "response",



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