diff src/terminal.c @ 13583:200ef826e7dd v8.0.1664

patch 8.0.1664: test failure because of not allocating enough space commit https://github.com/vim/vim/commit/3aa67fb453373109132b71eeb488595d651dfb7d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 5 21:04:15 2018 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Thu, 05 Apr 2018 21:15:05 +0200
parents 486ad9fd9038
children b6998c6374e1
line wrap: on
line diff
--- 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);