mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Replace vim_strncpy calls: path.c
This commit is contained in:
parent
260c327fb5
commit
2179a03111
@ -1534,7 +1534,7 @@ vim_FullName (
|
||||
retval = path_get_absolute_path(fname, buf, len, force);
|
||||
if (url || retval == FAIL) {
|
||||
/* something failed; use the file name (truncate when too long) */
|
||||
vim_strncpy(buf, fname, len - 1);
|
||||
STRLCPY(buf, fname, len);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user