]> granicus.if.org Git - vim/commitdiff
patch 8.0.1664: test failure because of not allocating enough space v8.0.1664
authorBram Moolenaar <Bram@vim.org>
Thu, 5 Apr 2018 19:04:15 +0000 (21:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 5 Apr 2018 19:04:15 +0000 (21:04 +0200)
Problem:    Test failure because of not allocating enough space.
Solution:   Allocate more bytes.

src/terminal.c
src/version.c

index 86b86474e3aabb27ab4f148617586769870a7816..1d81d8db5681bb7ee83aaf15404f767c13d2464f 100644 (file)
@@ -3192,7 +3192,7 @@ handle_drop_command(listitem_T *item)
            p = get_dict_string(dict, (char_u *)"encoding", FALSE);
        if (p != NULL)
        {
-           ea.cmd = alloc((int)STRLEN(p) + 10);
+           ea.cmd = alloc((int)STRLEN(p) + 12);
            if (ea.cmd != NULL)
            {
                sprintf((char *)ea.cmd, "sbuf ++enc=%s", p);
index 4d19b47b5d38142aadcbc47eba912bd1f7ca440b..a9b4dca755807051e7179a607e1291ea4ce6327c 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1664,
 /**/
     1663,
 /**/