[evolution/gnome-2-28] Bug #607458 - fix format security warning
- From: Frédéric Crozat <fcrozat src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-28] Bug #607458 - fix format security warning
- Date: Tue, 19 Jan 2010 18:39:14 +0000 (UTC)
commit f2c2847f5eef11076b50c0c786559d909227e12a
Author: Frederic Crozat <fcrozat mandriva com>
Date: Tue Jan 19 16:01:15 2010 +0100
Bug #607458 - fix format security warning
filter/rule-context.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/filter/rule-context.c b/filter/rule-context.c
index 6c7f578..8993e9f 100644
--- a/filter/rule-context.c
+++ b/filter/rule-context.c
@@ -312,7 +312,7 @@ load(RuleContext *rc, const gchar *system, const gchar *user)
if (systemdoc == NULL) {
gchar * err_msg = g_strdup_printf("Unable to load system rules '%s': %s",
system, g_strerror(errno));
- g_warning(err_msg);
+ g_warning("%s: %s", G_STRFUNC, err_msg);
rule_context_set_error(rc, err_msg);
/* no need to free err_msg here */
return -1;
@@ -323,7 +323,7 @@ load(RuleContext *rc, const gchar *system, const gchar *user)
gchar * err_msg = g_strdup_printf(
"Unable to load system rules '%s': Invalid format",
system);
- g_warning(err_msg);
+ g_warning("%s: %s", G_STRFUNC, err_msg);
rule_context_set_error(rc, err_msg);
/* no need to free err_msg here */
xmlFreeDoc(systemdoc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]