0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.1-034

This commit is contained in:
Bram Moolenaar
2007-07-24 08:45:13 +00:00
parent 9cffde9627
commit 5fdec47ab0
3 changed files with 9 additions and 7 deletions

View File

@@ -992,20 +992,20 @@ var_redir_str(value, value_len)
char_u *value;
int value_len;
{
size_t len;
int len;
if (redir_lval == NULL)
return;
if (value_len == -1)
len = STRLEN(value); /* Append the entire string */
len = (int)STRLEN(value); /* Append the entire string */
else
len = value_len; /* Append only "value_len" characters */
len = value_len; /* Append only "value_len" characters */
if (ga_grow(&redir_ga, (int)len) == OK)
if (ga_grow(&redir_ga, len) == OK)
{
mch_memmove((char *)redir_ga.ga_data + redir_ga.ga_len, value, len);
redir_ga.ga_len += (int)len;
redir_ga.ga_len += len;
}
else
var_redir_stop();