Replace vim_strncpy calls: path.c

This commit is contained in:
Douglas Schneider 2014-05-26 17:09:02 -06:00 committed by Justin M. Keyes
parent 260c327fb5
commit 2179a03111

View File

@ -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;
}