comparison 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
comparison
equal deleted inserted replaced
13582:f6936cd9126e 13583:200ef826e7dd
3190 p = get_dict_string(dict, (char_u *)"enc", FALSE); 3190 p = get_dict_string(dict, (char_u *)"enc", FALSE);
3191 if (p == NULL) 3191 if (p == NULL)
3192 p = get_dict_string(dict, (char_u *)"encoding", FALSE); 3192 p = get_dict_string(dict, (char_u *)"encoding", FALSE);
3193 if (p != NULL) 3193 if (p != NULL)
3194 { 3194 {
3195 ea.cmd = alloc((int)STRLEN(p) + 10); 3195 ea.cmd = alloc((int)STRLEN(p) + 12);
3196 if (ea.cmd != NULL) 3196 if (ea.cmd != NULL)
3197 { 3197 {
3198 sprintf((char *)ea.cmd, "sbuf ++enc=%s", p); 3198 sprintf((char *)ea.cmd, "sbuf ++enc=%s", p);
3199 ea.force_enc = 11; 3199 ea.force_enc = 11;
3200 tofree = ea.cmd; 3200 tofree = ea.cmd;