aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-18 18:15:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-18 18:15:50 +0000
commitcdce0ad1eef3b5addb466828742a016d3f8ddef7 (patch)
treef2c775718b01ad354093715106d6608295e4ea3b /src/libmime/mime_parser.c
parent5efc6ae1edae1fa5da02daff68d41fc5f4bac5fd (diff)
downloadrspamd-cdce0ad1eef3b5addb466828742a016d3f8ddef7.tar.gz
rspamd-cdce0ad1eef3b5addb466828742a016d3f8ddef7.zip
[Minor] Fix boundary calculation
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index ca31bac8c..6dec581bf 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -693,7 +693,7 @@ rspamd_mime_preprocess_cb (struct rspamd_multipattern *mp,
}
b.boundary = p - st->start - 3;
- b.start = bend - st->start - 1;
+ b.start = bend - st->start;
lc_copy = g_malloc (blen);
memcpy (lc_copy, p, blen);