aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/help.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-09 14:13:06 +0100
committerGitHub <noreply@github.com>2023-01-09 21:13:06 +0800
commit149209400383c673fdb4fdd1c9a7639139f17936 (patch)
treed2c4e5fa69fc302ec3050978a303f6a479f30291 /src/nvim/help.c
parentfc2cd28547954e64ef429c83733f06fa3ee75d50 (diff)
downloadrneovim-149209400383c673fdb4fdd1c9a7639139f17936.tar.gz
rneovim-149209400383c673fdb4fdd1c9a7639139f17936.tar.bz2
rneovim-149209400383c673fdb4fdd1c9a7639139f17936.zip
refactor: replace char_u with char 17 - remove STRLCPY (#21235)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/help.c')
-rw-r--r--src/nvim/help.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/help.c b/src/nvim/help.c
index 2095925db3..af28c37910 100644
--- a/src/nvim/help.c
+++ b/src/nvim/help.c
@@ -880,7 +880,7 @@ static void helptags_one(char *dir, const char *ext, const char *tagfname, bool
bool mix = false; // detected mixed encodings
// Find all *.txt files.
- size_t dirlen = STRLCPY(NameBuff, dir, sizeof(NameBuff));
+ size_t dirlen = xstrlcpy(NameBuff, dir, sizeof(NameBuff));
if (dirlen >= MAXPATHL
|| xstrlcat(NameBuff, "/**/*", sizeof(NameBuff)) >= MAXPATHL // NOLINT
|| xstrlcat(NameBuff, ext, sizeof(NameBuff)) >= MAXPATHL) {
@@ -1089,7 +1089,7 @@ static void do_helptags(char *dirname, bool add_help_tags, bool ignore_writeerr)
char **files;
// Get a list of all files in the help directory and in subdirectories.
- STRLCPY(NameBuff, dirname, sizeof(NameBuff));
+ xstrlcpy(NameBuff, dirname, sizeof(NameBuff));
if (!add_pathsep((char *)NameBuff)
|| xstrlcat(NameBuff, "**", sizeof(NameBuff)) >= MAXPATHL) {
emsg(_(e_fnametoolong));