From: Vsevolod Stakhov Date: Thu, 27 May 2021 16:57:02 +0000 (+0100) Subject: [Minor] Fix strlcpy usage X-Git-Tag: 3.0~361 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c22e3145c2384dcc125416ba222317834043e43;p=rspamd.git [Minor] Fix strlcpy usage --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index cfafbf736..15865533a 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -356,7 +356,7 @@ parse_tag_content(rspamd_mempool_t *pool, * Copy tag name to the temporary buffer for modifications */ auto *s = rspamd_mempool_alloc_buffer(pool, tag->name.size() + 1); - rspamd_strlcpy(s, tag->name.data(), tag->name.size()); + rspamd_strlcpy(s, tag->name.data(), tag->name.size() + 1); auto nsize = rspamd_html_decode_entitles_inplace(s, tag->name.size()); nsize = rspamd_str_lc_utf8(s, nsize);