mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
Replace vim_strncpy calls: os/users.c
This commit is contained in:

committed by
Justin M. Keyes

parent
52c46d2cad
commit
7249729af6
@@ -56,7 +56,7 @@ int os_get_uname(uid_t uid, char *s, size_t len)
|
|||||||
|
|
||||||
if ((pw = getpwuid(uid)) != NULL
|
if ((pw = getpwuid(uid)) != NULL
|
||||||
&& pw->pw_name != NULL && *(pw->pw_name) != NUL) {
|
&& 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;
|
return OK;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user