mirror of
https://github.com/tmux/tmux.git
synced 2025-04-17 17:38:48 +00:00
Stop at end of buffer.
This commit is contained in:
parent
3e60ab1caf
commit
e23c73457a
@ -878,7 +878,7 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
|
||||
}
|
||||
if (end == len)
|
||||
return (1);
|
||||
if (buf[end] != '~' && buf[end] != 'u')
|
||||
if (end == sizeof tmp || (buf[end] != '~' && buf[end] != 'u'))
|
||||
return (-1);
|
||||
|
||||
/* Copy to the buffer. */
|
||||
|
Loading…
Reference in New Issue
Block a user