From: Bram Moolenaar Date: Thu, 5 Apr 2018 19:04:15 +0000 (+0200) Subject: patch 8.0.1664: test failure because of not allocating enough space X-Git-Tag: v8.0.1664 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aa67fb453373109132b71eeb488595d651dfb7d;p=thirdparty%2Fvim.git 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. --- diff --git a/src/terminal.c b/src/terminal.c index 86b86474e3..1d81d8db56 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -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); diff --git a/src/version.c b/src/version.c index 4d19b47b5d..a9b4dca755 100644 --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1664, /**/ 1663, /**/