From 3b88cf246be7cd4bc72a7667fdffa3c8f5a04411 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Mar 2018 17:34:40 +0000 Subject: [PATCH] [Minor] Fix strlcpy call --- src/libmime/content_type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5