From 81da16b53fbf804a3cd32bc15313c96444b71484 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 10 Mar 2022 12:24:02 +0000 Subject: 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) --- src/filepath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filepath.c') diff --git a/src/filepath.c b/src/filepath.c index 7a5dae441f..f0da60f452 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; } -- cgit v1.2.3