summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {