Mercurial > vim
changeset 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 | f6936cd9126e |
children | 250bb3baaf19 |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
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);