From d9174ecce4bf157d092bba37a8d87ba5725aa34f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 28 May 2021 11:04:32 +0100 Subject: [PATCH] [Minor] Another strlcpy fix --- src/libserver/html/html_url.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx index 5c4fb8d56f..a95daccf64 100644 --- a/src/libserver/html/html_url.cxx +++ b/src/libserver/html/html_url.cxx @@ -220,7 +220,7 @@ html_check_displayed_url(rspamd_mempool_t *pool, url->visible_part = rspamd_mempool_alloc_buffer(pool, visible_part.size() + 1); rspamd_strlcpy(url->visible_part, visible_part.data(), - visible_part.size()); + visible_part.size() + 1); dlen = visible_part.size(); /* Strip unicode spaces from the start and the end */ -- 2.47.3