1
0
forked from aniani/vim

updated for version 7.0109

This commit is contained in:
Bram Moolenaar
2005-07-18 21:58:11 +00:00
parent bbebc85750
commit ce0842a6ee
30 changed files with 178 additions and 134 deletions

View File

@@ -4318,8 +4318,7 @@ skip:
if (errmsg != NULL)
{
STRNCPY(IObuff, _(errmsg), IOSIZE - 1);
IObuff[IOSIZE - 1] = NUL;
vim_strncpy(IObuff, (char_u *)_(errmsg), IOSIZE - 1);
i = STRLEN(IObuff) + 2;
if (i + (arg - startarg) < IOSIZE)
{
@@ -9365,7 +9364,7 @@ option_value2string(opp, opt_flags)
else if ((char_u **)opp->var == &p_pt)
str2specialbuf(p_pt, NameBuff, MAXPATHL);
else
STRNCPY(NameBuff, varp, MAXPATHL);
vim_strncpy(NameBuff, varp, MAXPATHL - 1);
}
}