Skip to content

Commit

Permalink
patch 8.0.1664: test failure because of not allocating enough space
Browse files Browse the repository at this point in the history
Problem:    Test failure because of not allocating enough space.
Solution:   Allocate more bytes.
  • Loading branch information
brammool committed Apr 5, 2018
1 parent 86676c9 commit 3aa67fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal.c
Expand Up @@ -3192,7 +3192,7 @@ handle_drop_command(listitem_T *item)
p = get_dict_string(dict, (char_u *)"encoding", FALSE); p = get_dict_string(dict, (char_u *)"encoding", FALSE);
if (p != NULL) if (p != NULL)
{ {
ea.cmd = alloc((int)STRLEN(p) + 10); ea.cmd = alloc((int)STRLEN(p) + 12);
if (ea.cmd != NULL) if (ea.cmd != NULL)
{ {
sprintf((char *)ea.cmd, "sbuf ++enc=%s", p); sprintf((char *)ea.cmd, "sbuf ++enc=%s", p);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1664,
/**/ /**/
1663, 1663,
/**/ /**/
Expand Down

0 comments on commit 3aa67fb

Please sign in to comment.