monitor-manager: Fix format-security gcc warnings

This commit is contained in:
Rui Matos 2017-04-12 16:26:21 +02:00
parent 47a01013b1
commit 612432ac3e

View File

@ -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_method_invocation_return_error (invocation, G_DBUS_ERROR,
G_DBUS_ERROR_INVALID_ARGS, G_DBUS_ERROR_INVALID_ARGS,
error->message); "%s", error->message);
g_error_free (error); g_error_free (error);
g_list_free_full (logical_monitor_configs, g_list_free_full (logical_monitor_configs,
(GDestroyNotify) meta_logical_monitor_config_free); (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_method_invocation_return_error (invocation, G_DBUS_ERROR,
G_DBUS_ERROR_INVALID_ARGS, G_DBUS_ERROR_INVALID_ARGS,
error->message); "%s", error->message);
g_error_free (error); g_error_free (error);
g_object_unref (config); g_object_unref (config);
return TRUE; 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_method_invocation_return_error (invocation, G_DBUS_ERROR,
G_DBUS_ERROR_INVALID_ARGS, G_DBUS_ERROR_INVALID_ARGS,
error->message); "%s", error->message);
g_error_free (error); g_error_free (error);
g_object_unref (config); g_object_unref (config);
return TRUE; 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_method_invocation_return_error (invocation, G_DBUS_ERROR,
G_DBUS_ERROR_INVALID_ARGS, G_DBUS_ERROR_INVALID_ARGS,
error->message); "%s", error->message);
g_error_free (error); g_error_free (error);
g_object_unref (config); g_object_unref (config);
return TRUE; return TRUE;