[gnome-control-center] user-accounts: Fix build with -Werror=format-security
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Fix build with -Werror=format-security
- Date: Tue, 3 Jul 2012 11:58:56 +0000 (UTC)
commit f2df6d7fbbb41cee78b94a7c2d3dc331168433b7
Author: Rico Tzschichholz <ricotz t-online de>
Date: Tue Jul 3 13:54:38 2012 +0200
user-accounts: Fix build with -Werror=format-security
panels/user-accounts/um-account-dialog.c | 2 +-
panels/user-accounts/um-realm-manager.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index 985bb10..8612067 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -111,7 +111,7 @@ show_error_dialog (UmAccountDialog *self,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- message);
+ "%s", message);
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", error->message);
diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c
index c2e7359..b5281c4 100644
--- a/panels/user-accounts/um-realm-manager.c
+++ b/panels/user-accounts/um-realm-manager.c
@@ -600,7 +600,7 @@ um_realm_join_finish (UmRealmKerberos *self,
if (g_str_equal (dbus_error, "org.freedesktop.realmd.Error.AuthFailed")) {
g_set_error (error, UM_REALM_ERROR, UM_REALM_ERROR_BAD_LOGIN,
- call_error->message);
+ "%s", call_error->message);
g_error_free (call_error);
} else {
g_propagate_error (error, call_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]