diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-10-14 23:48:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 23:48:42 +0200 |
commit | 5fd4557573c73a6b41b702b1ee39151b5bd7e5fd (patch) | |
tree | a61420011ff628034dbe33cdcc160d7eed6a94f7 /src/nvim/tag.c | |
parent | 88e16a7f30b23c03c2207086f613190e685a67c3 (diff) | |
parent | 24a1880866b1b7f6cb74b7ac4fe9fbecd678bbe1 (diff) | |
download | rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.tar.gz rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.tar.bz2 rneovim-5fd4557573c73a6b41b702b1ee39151b5bd7e5fd.zip |
Merge pull request #16014 from dundargoc/refactor/reduce-char-casts
refactor: reduce number of unique char casts
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 768cca284b..ee92a2c642 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -906,7 +906,7 @@ static int add_llist_tags(char_u *tag, int num_matches, char_u **matches) if (len > 128) { len = 128; } - xstrlcpy((char *)tag_name, (const char *)tagp.tagname, len + 1); + STRLCPY(tag_name, tagp.tagname, len + 1); tag_name[len] = NUL; // Save the tag file name @@ -914,7 +914,7 @@ static int add_llist_tags(char_u *tag, int num_matches, char_u **matches) if (p == NULL) { continue; } - xstrlcpy((char *)fname, (const char *)p, MAXPATHL); + STRLCPY(fname, p, MAXPATHL); XFREE_CLEAR(p); // Get the line number or the search pattern used to locate |