diff --git a/src/winio.c b/src/winio.c index 1d4c44f5..78c0a7e2 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1449,7 +1449,7 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *count) * an escape sequence, and return the resulting number of bytes in count. */ char *get_verbatim_kbinput(WINDOW *win, size_t *count) { - char *bytes = charalloc(MAXCHARLEN + 1); + char *bytes = charalloc(MAXCHARLEN + 2); int *input; /* Turn off flow control characters if necessary so that we can type