diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-25 18:15:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-25 18:15:07 +0000 |
commit | 739973b510a045da415b248316f4d91b05115327 (patch) | |
tree | fa0679e43545f47713a9e306f7a2eff2de2dd6fb /src/libutil | |
parent | 1b5bf8f88aadec05439c3657c15e4d8205226497 (diff) | |
download | rspamd-739973b510a045da415b248316f4d91b05115327.tar.gz rspamd-739973b510a045da415b248316f4d91b05115327.zip |
[Minor] Fix log id
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/logger.c | 4 |
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; |