mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
Replace vim_strncpy calls: option.c
This commit is contained in:

committed by
Justin M. Keyes

parent
2179a03111
commit
30f5cd6c30
@@ -3209,7 +3209,7 @@ skip:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (errmsg != NULL) {
|
if (errmsg != NULL) {
|
||||||
vim_strncpy(IObuff, (char_u *)_(errmsg), IOSIZE - 1);
|
STRLCPY(IObuff, _(errmsg), IOSIZE);
|
||||||
i = (int)STRLEN(IObuff) + 2;
|
i = (int)STRLEN(IObuff) + 2;
|
||||||
if (i + (arg - startarg) < IOSIZE) {
|
if (i + (arg - startarg) < IOSIZE) {
|
||||||
/* append the argument with the error */
|
/* append the argument with the error */
|
||||||
@@ -7480,7 +7480,7 @@ option_value2string (
|
|||||||
else if ((char_u **)opp->var == &p_pt)
|
else if ((char_u **)opp->var == &p_pt)
|
||||||
str2specialbuf(p_pt, NameBuff, MAXPATHL);
|
str2specialbuf(p_pt, NameBuff, MAXPATHL);
|
||||||
else
|
else
|
||||||
vim_strncpy(NameBuff, varp, MAXPATHL - 1);
|
STRLCPY(NameBuff, varp, MAXPATHL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user