From 739973b510a045da415b248316f4d91b05115327 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 25 Nov 2016 18:15:07 +0000 Subject: [Minor] Fix log id --- src/libutil/logger.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libutil') diff --git a/src/libutil/logger.c b/src/libutil/logger.c index 604fe8348..082c12d14 100644 --- a/src/libutil/logger.c +++ b/src/libutil/logger.c @@ -993,7 +993,9 @@ file_log_function (const gchar *module, const gchar *id, m = modulebuf; if (id != NULL) { - mr = rspamd_snprintf (m, mremain, "<%*.s>; ", LOG_ID, + guint slen = strlen (id); + slen = MIN (LOG_ID, slen); + mr = rspamd_snprintf (m, mremain, "<%*.s>; ", slen, id); m += mr; mremain -= mr; -- cgit v1.2.3