input: allocate sufficient bytes for entering a Unicode codepoint
This fixes https://savannah.gnu.org/bugs/?57803.
Bug existed since commit 2b27df67
from yesterday.
Этот коммит содержится в:
родитель
2b27df6733
Коммит
03d296eb35
@ -1580,7 +1580,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(3);
|
||||
char *bytes = charalloc(MAXCHARLEN + 1);
|
||||
int *input;
|
||||
|
||||
/* Turn off flow control characters if necessary so that we can type
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user