0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.1664: test failure because of not allocating enough space

Problem:    Test failure because of not allocating enough space.
Solution:   Allocate more bytes.
This commit is contained in:
Bram Moolenaar
2018-04-05 21:04:15 +02:00
parent 86676c949f
commit 3aa67fb453
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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,
/**/ /**/