aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-28 11:04:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-28 11:04:32 +0100
commitd9174ecce4bf157d092bba37a8d87ba5725aa34f (patch)
tree8b348a9b16c596b74df766e752c9e2251e5af707 /src
parent89b98cbd7c8cdbfa923e68cbeab4001b7b3aa28c (diff)
downloadrspamd-d9174ecce4bf157d092bba37a8d87ba5725aa34f.tar.gz
rspamd-d9174ecce4bf157d092bba37a8d87ba5725aa34f.zip
[Minor] Another strlcpy fix
Diffstat (limited to 'src')
-rw-r--r--src/libserver/html/html_url.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx
index 5c4fb8d56..a95daccf6 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 */