summaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-08 17:34:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-08 17:34:40 +0000
commit3b88cf246be7cd4bc72a7667fdffa3c8f5a04411 (patch)
tree249aa56962822a3e3a6dc38ccd07580299e1e60f /src/libmime
parent0398b848d4b61b90c51175c713ee3ba1c16829f2 (diff)
downloadrspamd-3b88cf246be7cd4bc72a7667fdffa3c8f5a04411.tar.gz
rspamd-3b88cf246be7cd4bc72a7667fdffa3c8f5a04411.zip
[Minor] Fix strlcpy call
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/content_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/content_type.c b/src/libmime/content_type.c
index 61520c425..524b6f636 100644
--- a/src/libmime/content_type.c
+++ b/src/libmime/content_type.c
@@ -506,7 +506,7 @@ rspamd_content_disposition_parse (const gchar *in,
res = rspamd_mempool_alloc (pool, sizeof (val));
memcpy (res, &val, sizeof (val));
res->lc_data = rspamd_mempool_alloc (pool, len + 1);
- rspamd_strlcpy (res->lc_data, in, len);
+ rspamd_strlcpy (res->lc_data, in, len + 1);
rspamd_str_lc (res->lc_data, len);
}
else {