[gyrus] gyrus-admin.c:1474:4: error: format not a string literal and no format arguments
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gyrus] gyrus-admin.c:1474:4: error: format not a string literal and no format arguments
- Date: Mon, 4 Mar 2013 08:12:35 +0000 (UTC)
commit 56228534c043d8147e4aab3c77a4669aae663f60
Author: Bart Martens <bartm debian org>
Date: Mon Mar 4 09:54:57 2013 +0200
gyrus-admin.c:1474:4: error: format not a string literal and no format arguments
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643404
src/gyrus-admin-mailbox.c | 2 +-
src/gyrus-admin.c | 10 +++++-----
src/gyrus-common.c | 2 +-
src/gyrus-session.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gyrus-admin-mailbox.c b/src/gyrus-admin-mailbox.c
index f4cde05..c49ae3a 100644
--- a/src/gyrus-admin-mailbox.c
+++ b/src/gyrus-admin-mailbox.c
@@ -163,7 +163,7 @@ gyrus_admin_mailbox_show_info (GyrusAdmin *admin, const gchar *user,
/* sets the quota info in the screen */
if (quota_limit < 0)
g_sprintf (str_quota_limit,
- msg);
+ "%s", msg);
else
gyrus_admin_mailbox_get_human_quota (quota_limit,
str_quota_limit);
diff --git a/src/gyrus-admin.c b/src/gyrus-admin.c
index eb371a9..2c632b9 100644
--- a/src/gyrus-admin.c
+++ b/src/gyrus-admin.c
@@ -1471,11 +1471,11 @@ gyrus_admin_on_acl_identifier_edited (GtkCellRendererText *cellrenderertext,
if (!duplicated) {
if (!gyrus_admin_acl_set_entry (admin, mailbox,
newname, rights, &error)) {
- g_warning (error);
+ g_warning ("%s", error);
g_free (error);
} else if (!gyrus_admin_acl_delete_entry (admin, mailbox,
oldname, &error)) {
- g_warning (error);
+ g_warning ("%s", error);
g_free (error);
} else {
gtk_list_store_set (GTK_LIST_STORE (model), &iter,
@@ -1486,16 +1486,16 @@ gyrus_admin_on_acl_identifier_edited (GtkCellRendererText *cellrenderertext,
/* DELETE EXISTING ONE */
if (!gyrus_admin_acl_delete_entry (admin, mailbox,
newname, &error)) {
- g_warning (error);
+ g_warning ("%s", error);
g_free (error);
} else if (!gyrus_admin_acl_set_entry (admin, mailbox,
newname, rights,
&error)) {
- g_warning (error);
+ g_warning ("%s", error);
g_free (error);
} else if (!gyrus_admin_acl_delete_entry (admin, mailbox,
oldname, &error)) {
- g_warning (error);
+ g_warning ("%s", error);
g_free (error);
} else {
/* All OK! */
diff --git a/src/gyrus-common.c b/src/gyrus-common.c
index 7527752..bf4eba3 100644
--- a/src/gyrus-common.c
+++ b/src/gyrus-common.c
@@ -36,7 +36,7 @@ gyrus_common_show_message (GtkWindow *parent,
GtkWidget *dialog;
dialog = gtk_message_dialog_new (parent, GTK_DIALOG_MODAL,
- type, GTK_BUTTONS_OK, message);
+ type, GTK_BUTTONS_OK, "%s", message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
diff --git a/src/gyrus-session.c b/src/gyrus-session.c
index 8b87021..d472722 100644
--- a/src/gyrus-session.c
+++ b/src/gyrus-session.c
@@ -658,7 +658,7 @@ gyrus_session_get_with_name (const gchar *name)
aux->sep_char = g_strdup (".");
else if (error) {
aux->sep_char = g_strdup (".");
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]