mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 20:04:02 +00:00
Don't accept keys with modifiers as input. Fixes crash reported by Brian
R Landy.
This commit is contained in:
parent
41f90bd08f
commit
56481a46bf
1 changed files with 1 additions and 1 deletions
2
status.c
2
status.c
|
|
@ -1046,7 +1046,7 @@ status_prompt_key(struct client *c, int key)
|
|||
status_prompt_clear(c);
|
||||
break;
|
||||
case MODEKEY_OTHER:
|
||||
if (key < 32 || key == 127)
|
||||
if ((key & 0xff00) != 0 || key < 32 || key == 127)
|
||||
break;
|
||||
c->prompt_buffer = xrealloc(c->prompt_buffer, 1, size + 2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue