]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Another strlcpy fix
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 28 May 2021 10:04:32 +0000 (11:04 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 28 May 2021 10:04:32 +0000 (11:04 +0100)
src/libserver/html/html_url.cxx

index 5c4fb8d56f51e705960423203930126bd95fd28d..a95daccf64133ec3cd6ed0ef51607770db7a2e96 100644 (file)
@@ -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 */