Don't limit the DCS buffer to 256 bytes, expand it as needed. Requested

by Suraj Kurapati.
This commit is contained in:
nicm
2014-04-17 12:43:38 +00:00
parent bce952777a
commit ada75af199
2 changed files with 44 additions and 16 deletions

5
tmux.h
View File

@ -818,8 +818,11 @@ struct input_ctx {
u_char param_buf[64];
size_t param_len;
u_char input_buf[256];
#define INPUT_BUF_START 32
#define INPUT_BUF_LIMIT 1048576
u_char* input_buf;
size_t input_len;
size_t input_space;
int param_list[24]; /* -1 not present */
u_int param_list_len;