mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4535: filename modifer ":8" removes the filename
Problem: Filename modifer ":8" removes the filename. Solution: Use strncpy() instead of vim_strncpy(). (Christian Brabandt, closes #9918, closes #8600)
This commit is contained in:
committed by
Bram Moolenaar
parent
f8691004b0
commit
81da16b53f
@@ -186,7 +186,7 @@ shortpath_for_invalid_fname(
|
||||
// unless get_short_pathname() did its work in-place.
|
||||
*fname = *bufp = save_fname;
|
||||
if (short_fname != save_fname)
|
||||
vim_strncpy(save_fname, short_fname, len);
|
||||
STRNCPY(save_fname, short_fname, len);
|
||||
save_fname = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user