From 3aa67fb453373109132b71eeb488595d651dfb7d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 5 Apr 2018 21:04:15 +0200 Subject: [PATCH] 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. --- src/terminal.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/terminal.c b/src/terminal.c index 86b86474e..1d81d8db5 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 4d19b47b5..a9b4dca75 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, /**/