aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-23 13:43:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-23 13:43:59 +0100
commitf10b11ddf685392b18218f6003e2eb3b6295dfd3 (patch)
treeaee42f2f2cfe3da52d543ac854ca84206d98bff3
parent935367f511cf6f10342bf411b13f6cd2ee94ef00 (diff)
downloadrspamd-f10b11ddf685392b18218f6003e2eb3b6295dfd3.tar.gz
rspamd-f10b11ddf685392b18218f6003e2eb3b6295dfd3.zip
Fix issue with va_list passing.
Issue: #379 Reported by: @Gottox
-rw-r--r--src/libutil/logger.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 65cb67cdc..105b59375 100644
--- a/src/libutil/logger.c
+++ b/src/libutil/logger.c
@@ -923,8 +923,9 @@ rspamd_glib_log_function (const gchar *log_domain,
void
rspamd_glib_printerr_function (const gchar *message)
{
- rspamd_common_logv (NULL, G_LOG_LEVEL_CRITICAL, "glib", NULL, G_STRFUNC,
- message, NULL);
+ rspamd_common_log_function (NULL, G_LOG_LEVEL_CRITICAL, "glib",
+ NULL, G_STRFUNC,
+ "%s", message);
}
/**