From 7249729af6d00b2a3816d39304f24927b6454d74 Mon Sep 17 00:00:00 2001 From: Douglas Schneider Date: Mon, 26 May 2014 08:15:01 -0600 Subject: Replace vim_strncpy calls: os/users.c --- src/nvim/os/users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit