From 612432ac3e4e67653213f7fb47b349191879eeb2 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 12 Apr 2017 16:26:21 +0200 Subject: [PATCH] monitor-manager: Fix format-security gcc warnings --- src/backends/meta-monitor-manager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index 6aa997d1a..b0a8dbb58 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -1983,7 +1983,7 @@ meta_monitor_manager_handle_apply_monitors_config (MetaDBusDisplayConfig *skelet { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, - error->message); + "%s", error->message); g_error_free (error); g_list_free_full (logical_monitor_configs, (GDestroyNotify) meta_logical_monitor_config_free); @@ -1999,7 +1999,7 @@ meta_monitor_manager_handle_apply_monitors_config (MetaDBusDisplayConfig *skelet { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, - error->message); + "%s", error->message); g_error_free (error); g_object_unref (config); return TRUE; @@ -2009,7 +2009,7 @@ meta_monitor_manager_handle_apply_monitors_config (MetaDBusDisplayConfig *skelet { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, - error->message); + "%s", error->message); g_error_free (error); g_object_unref (config); return TRUE; @@ -2025,7 +2025,7 @@ meta_monitor_manager_handle_apply_monitors_config (MetaDBusDisplayConfig *skelet { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, - error->message); + "%s", error->message); g_error_free (error); g_object_unref (config); return TRUE;