diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-28 11:04:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-28 11:04:32 +0100 |
commit | d9174ecce4bf157d092bba37a8d87ba5725aa34f (patch) | |
tree | 8b348a9b16c596b74df766e752c9e2251e5af707 /src | |
parent | 89b98cbd7c8cdbfa923e68cbeab4001b7b3aa28c (diff) | |
download | rspamd-d9174ecce4bf157d092bba37a8d87ba5725aa34f.tar.gz rspamd-d9174ecce4bf157d092bba37a8d87ba5725aa34f.zip |
[Minor] Another strlcpy fix
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/html/html_url.cxx | 2 |
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 */ |