From: Vsevolod Stakhov Date: Fri, 28 May 2021 10:04:32 +0000 (+0100) Subject: [Minor] Another strlcpy fix X-Git-Tag: 3.0~359 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d9174ecce4bf157d092bba37a8d87ba5725aa34f;p=thirdparty%2Frspamd.git [Minor] Another strlcpy fix --- 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 */