diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-12 05:20:23 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-12 06:25:27 +0100 |
commit | aa56b24ee6553b4417f2c2defdde5be302a868cd (patch) | |
tree | fd6a9da93c5fc30edaf0dbb253c1a3807e9c0c51 /src/nvim/os/fs.c | |
parent | 0c7751f6ab86e61e6ac447b1439f6f683f8c119f (diff) | |
download | rneovim-aa56b24ee6553b4417f2c2defdde5be302a868cd.tar.gz rneovim-aa56b24ee6553b4417f2c2defdde5be302a868cd.tar.bz2 rneovim-aa56b24ee6553b4417f2c2defdde5be302a868cd.zip |
os/*: Use os_buf instead of NameBuff, IObuff.
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r-- | src/nvim/os/fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 097c672887..e930561234 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -275,8 +275,8 @@ static bool is_executable(const char *name) static bool is_executable_ext(char *name, const char *pathext) FUNC_ATTR_NONNULL_ALL { - xstrlcpy((char *)NameBuff, name, sizeof(NameBuff)); - char *buf_end = xstrchrnul((char *)NameBuff, '\0'); + xstrlcpy(os_buf, name, sizeof(os_buf)); + char *buf_end = xstrchrnul(os_buf, '\0'); for (const char *ext = pathext; *ext; ext++) { // Skip the extension if there is no suffix after a '.'. if (ext[0] == '.' && (ext[1] == '\0' || ext[1] == ENV_SEPCHAR)) { @@ -287,7 +287,7 @@ static bool is_executable_ext(char *name, const char *pathext) const char *ext_end = xstrchrnul(ext, ENV_SEPCHAR); STRLCPY(buf_end, ext, ext_end - ext + 1); - if (is_executable((char *)NameBuff)) { + if (is_executable(os_buf)) { return true; } |