mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
Replace vim_strncpy calls: misc2.c
This commit is contained in:

committed by
Justin M. Keyes

parent
d6e9b3caad
commit
a328bcfb47
@@ -375,7 +375,7 @@ int vim_chdirfile(char_u *fname)
|
||||
{
|
||||
char_u dir[MAXPATHL];
|
||||
|
||||
vim_strncpy(dir, fname, MAXPATHL - 1);
|
||||
STRLCPY(dir, fname, MAXPATHL);
|
||||
*path_tail_with_sep(dir) = NUL;
|
||||
return os_chdir((char *)dir) == 0 ? OK : FAIL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user