0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0109

This commit is contained in:
Bram Moolenaar
2005-07-18 21:40:44 +00:00
parent e759a7aa9a
commit b635633989
11 changed files with 91 additions and 70 deletions

View File

@@ -257,8 +257,7 @@ add_buff(buf, s, slen)
if (buf->bh_space >= (int)slen)
{
len = (long_u)STRLEN(buf->bh_curr->b_str);
STRNCPY(buf->bh_curr->b_str + len, s, slen);
buf->bh_curr->b_str[len + slen] = NUL;
vim_strncpy(buf->bh_curr->b_str + len, s, (size_t)slen);
buf->bh_space -= slen;
}
else
@@ -272,8 +271,7 @@ add_buff(buf, s, slen)
if (p == NULL)
return; /* no space, just forget it */
buf->bh_space = len - slen;
STRNCPY(p->b_str, s, slen);
p->b_str[slen] = NUL;
vim_strncpy(p->b_str, s, (size_t)slen);
p->b_next = buf->bh_curr->b_next;
buf->bh_curr->b_next = p;