From d6e9b3caada90141c74db1b29dca237771e210e5 Mon Sep 17 00:00:00 2001 From: Douglas Schneider Date: Sun, 25 May 2014 18:46:40 -0600 Subject: Replace vim_strncpy calls: os_unix.c --- src/nvim/os_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 18838ddd41..946eaa62a2 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -409,9 +409,9 @@ int len /* buffer size, only used when name gets longer */ struct stat st2; /* Verify the inode is equal. */ - vim_strncpy(newname, name, MAXPATHL); - vim_strncpy(newname + (tail - name), (char_u *)dp->d_name, - MAXPATHL - (tail - name)); + STRLCPY(newname, name, MAXPATHL + 1); + STRLCPY(newname + (tail - name), dp->d_name, + MAXPATHL - (tail - name) + 1); if (lstat((char *)newname, &st2) >= 0 && st.st_ino == st2.st_ino && st.st_dev == st2.st_dev) { -- cgit