mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 00:51:33 +00:00
refactor: add xmemcpyz() and use it in place of some xstrlcpy() (#28422)
Problem: Using xstrlcpy() when the exact length of the string to be
copied is known is not ideal because it requires adding 1 to
the length and an unnecessary strlen().
Solution: Add xmemcpyz() and use it in place of such xstrlcpy() calls.
This commit is contained in:
@@ -185,7 +185,7 @@ information.
|
||||
mch_memmove memmove
|
||||
vim_memset copy_chars copy_spaces memset
|
||||
vim_strbyte strchr
|
||||
vim_strncpy strncpy xstrlcpy
|
||||
vim_strncpy strncpy xstrlcpy/xmemcpyz
|
||||
vim_strcat strncat xstrlcat
|
||||
VIM_ISWHITE ascii_iswhite
|
||||
IS_WHITE_OR_NUL ascii_iswhite_or_nul
|
||||
|
||||
Reference in New Issue
Block a user