aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-25 18:15:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-25 18:15:07 +0000
commit739973b510a045da415b248316f4d91b05115327 (patch)
treefa0679e43545f47713a9e306f7a2eff2de2dd6fb /src/libutil
parent1b5bf8f88aadec05439c3657c15e4d8205226497 (diff)
downloadrspamd-739973b510a045da415b248316f4d91b05115327.tar.gz
rspamd-739973b510a045da415b248316f4d91b05115327.zip
[Minor] Fix log id
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/logger.c4
1 files changed, 3 insertions, 1 deletions
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;