[gvfs] udisks2: Fix error when compiling with -Werror=format-security
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] udisks2: Fix error when compiling with -Werror=format-security
- Date: Sat, 30 Jun 2012 04:43:21 +0000 (UTC)
commit 30b70bdd4113a3bb22e8ee98ecdfde5c5e5c165e
Author: Robert Ancell <robert ancell canonical com>
Date: Thu May 24 10:52:43 2012 +1200
udisks2: Fix error when compiling with -Werror=format-security
https://bugzilla.gnome.org/show_bug.cgi?id=676693
monitor/udisks2/gvfsudisks2mount.c | 2 +-
monitor/udisks2/gvfsudisks2volume.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2mount.c b/monitor/udisks2/gvfsudisks2mount.c
index cf3b29a..a2f1342 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -867,7 +867,7 @@ umount_command_cb (GObject *source_object,
g_simple_async_result_set_error (data->simple,
G_IO_ERROR,
G_IO_ERROR_FAILED,
- standard_error);
+ "%s", standard_error);
g_simple_async_result_complete (data->simple);
data->completed = TRUE;
unmount_data_unref (data);
diff --git a/monitor/udisks2/gvfsudisks2volume.c b/monitor/udisks2/gvfsudisks2volume.c
index 8b3ba98..a8bf3c0 100644
--- a/monitor/udisks2/gvfsudisks2volume.c
+++ b/monitor/udisks2/gvfsudisks2volume.c
@@ -875,7 +875,7 @@ mount_command_cb (GObject *source_object,
g_simple_async_result_set_error (data->simple,
G_IO_ERROR,
G_IO_ERROR_FAILED,
- standard_error);
+ "%s", standard_error);
g_simple_async_result_complete (data->simple);
mount_data_free (data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]