mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
Replace vim_strncpy calls: mark.c
This commit is contained in:

committed by
Justin M. Keyes

parent
4a8ac58596
commit
52c46d2cad
@@ -474,9 +474,9 @@ static void fname2fnum(xfmark_T *fm)
|
|||||||
|
|
||||||
expand_env((char_u *)"~/", NameBuff, MAXPATHL);
|
expand_env((char_u *)"~/", NameBuff, MAXPATHL);
|
||||||
len = (int)STRLEN(NameBuff);
|
len = (int)STRLEN(NameBuff);
|
||||||
vim_strncpy(NameBuff + len, fm->fname + 2, MAXPATHL - len - 1);
|
STRLCPY(NameBuff + len, fm->fname + 2, MAXPATHL - len);
|
||||||
} else
|
} else
|
||||||
vim_strncpy(NameBuff, fm->fname, MAXPATHL - 1);
|
STRLCPY(NameBuff, fm->fname, MAXPATHL);
|
||||||
|
|
||||||
/* Try to shorten the file name. */
|
/* Try to shorten the file name. */
|
||||||
os_dirname(IObuff, IOSIZE);
|
os_dirname(IObuff, IOSIZE);
|
||||||
|
Reference in New Issue
Block a user