diff options
author | Dundar Göc <gocdundar@gmail.com> | 2021-10-13 13:25:27 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2021-10-13 18:26:18 +0200 |
commit | 24a1880866b1b7f6cb74b7ac4fe9fbecd678bbe1 (patch) | |
tree | b5b8a04dc4af2bb4be6687fe57f624b08797640a /src/nvim/tag.c | |
parent | 33e79237bc003e8d6d556bf1b6a6e292bb8945e5 (diff) | |
download | rneovim-24a1880866b1b7f6cb74b7ac4fe9fbecd678bbe1.tar.gz rneovim-24a1880866b1b7f6cb74b7ac4fe9fbecd678bbe1.tar.bz2 rneovim-24a1880866b1b7f6cb74b7ac4fe9fbecd678bbe1.zip |
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 |