aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-24 09:51:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-24 09:51:00 +0000
commita7df2dbbc48173b870e33b9c30793a25390ae5ec (patch)
tree88cf8d48f936d1d81ba159746a2a35576ac0a4f0
parentccf2cbc6d00b0e8a2f63be214b6ccf121aa77c99 (diff)
downloadrspamd-a7df2dbbc48173b870e33b9c30793a25390ae5ec.tar.gz
rspamd-a7df2dbbc48173b870e33b9c30793a25390ae5ec.zip
Fix logging as headers now have \0 at the end
-rw-r--r--src/libserver/re_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index f989b64a7..5d0694086 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -1042,7 +1042,7 @@ rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache,
msg_info_re_cache (
"skip already valid class %s(%*s) to cache %6s, %d regexps",
rspamd_re_cache_type_to_string (re_class->type),
- (gint) re_class->type_len,
+ (gint) re_class->type_len - 1,
re_class->type_data,
re_class->hash,
n);
@@ -1208,7 +1208,7 @@ rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache,
msg_info_re_cache ("compiled class %s(%*s) to cache %6s, %d regexps",
rspamd_re_cache_type_to_string (re_class->type),
- (gint)re_class->type_len,
+ (gint)re_class->type_len - 1,
re_class->type_data,
re_class->hash, n);