aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDouglas Schneider <ds3@ualberta.ca>2014-05-25 18:46:40 -0600
committerJustin M. Keyes <justinkz@gmail.com>2014-06-13 18:08:21 -0400
commitd6e9b3caada90141c74db1b29dca237771e210e5 (patch)
treeffb92a15c1f0a1167296d4632ae77e8ba802741b /src
parentc37d4c5d12dece5507b265411a98214a5602c7d0 (diff)
downloadrneovim-d6e9b3caada90141c74db1b29dca237771e210e5.tar.gz
rneovim-d6e9b3caada90141c74db1b29dca237771e210e5.tar.bz2
rneovim-d6e9b3caada90141c74db1b29dca237771e210e5.zip
Replace vim_strncpy calls: os_unix.c
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os_unix.c6
1 files changed, 3 insertions, 3 deletions
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) {