diff options
author | Christian Brabandt <cb@256bit.org> | 2022-03-10 12:24:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-10 12:24:02 +0000 |
commit | 81da16b53fbf804a3cd32bc15313c96444b71484 (patch) | |
tree | bfe627416f346e912d11e95c8e3f61899f9b25af /src/filepath.c | |
parent | f8691004b069f67becd657a02100d7521d1255a9 (diff) | |
download | vim-git-81da16b53fbf804a3cd32bc15313c96444b71484.tar.gz |
patch 8.2.4535: filename modifer ":8" removes the filenamev8.2.4535
Problem: Filename modifer ":8" removes the filename.
Solution: Use strncpy() instead of vim_strncpy(). (Christian Brabandt,
closes #9918, closes #8600)
Diffstat (limited to 'src/filepath.c')
-rw-r--r-- | src/filepath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c index 7a5dae441..f0da60f45 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -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; } |