aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Schneider <ds3@ualberta.ca>2014-05-26 08:15:01 -0600
committerJustin M. Keyes <justinkz@gmail.com>2014-06-13 18:08:21 -0400
commit7249729af6d00b2a3816d39304f24927b6454d74 (patch)
treeecf7faf6179665c16e80d8353f3fa37f97c73947
parent52c46d2cadd21b9a2e87c5d772204f44de2b2b78 (diff)
downloadrneovim-7249729af6d00b2a3816d39304f24927b6454d74.tar.gz
rneovim-7249729af6d00b2a3816d39304f24927b6454d74.tar.bz2
rneovim-7249729af6d00b2a3816d39304f24927b6454d74.zip
Replace vim_strncpy calls: os/users.c
-rw-r--r--src/nvim/os/users.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/users.c b/src/nvim/os/users.c
index 707a2f5ee9..e687ff3546 100644
--- a/src/nvim/os/users.c
+++ b/src/nvim/os/users.c
@@ -56,7 +56,7 @@ int os_get_uname(uid_t uid, char *s, size_t len)
if ((pw = getpwuid(uid)) != NULL
&& pw->pw_name != NULL && *(pw->pw_name) != NUL) {
- vim_strncpy((char_u *)s, (char_u *)pw->pw_name, len - 1);
+ STRLCPY(s, pw->pw_name, len);
return OK;
}
#endif