]> source.dussan.org Git - rspamd.git/commitdiff
Fix issue with va_list passing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 12:43:59 +0000 (13:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 12:43:59 +0000 (13:43 +0100)
Issue: #379
Reported by: @Gottox

src/libutil/logger.c

index 65cb67cdcb092c8330cb5df6241df1309f4da7c7..105b593750deb37f549fdf3fd65f0528323b7a8d 100644 (file)
@@ -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);
 }
 
 /**