mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
Replace vim_strncpy calls: path.c
This commit is contained in:

committed by
Justin M. Keyes

parent
260c327fb5
commit
2179a03111
@@ -1534,7 +1534,7 @@ vim_FullName (
|
|||||||
retval = path_get_absolute_path(fname, buf, len, force);
|
retval = path_get_absolute_path(fname, buf, len, force);
|
||||||
if (url || retval == FAIL) {
|
if (url || retval == FAIL) {
|
||||||
/* something failed; use the file name (truncate when too long) */
|
/* something failed; use the file name (truncate when too long) */
|
||||||
vim_strncpy(buf, fname, len - 1);
|
STRLCPY(buf, fname, len);
|
||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user