From: Vsevolod Stakhov Date: Wed, 23 Sep 2015 12:43:59 +0000 (+0100) Subject: Fix issue with va_list passing. X-Git-Tag: 1.0.2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f10b11ddf685392b18218f6003e2eb3b6295dfd3;p=rspamd.git Fix issue with va_list passing. Issue: #379 Reported by: @Gottox --- 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); } /**