mirror of
https://github.com/tmux/tmux.git
synced 2025-12-19 00:02:06 -05: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)
|
if (end == len)
|
||||||
return (1);
|
return (1);
|
||||||
if (buf[end] != '~' && buf[end] != 'u')
|
if (end == sizeof tmp || (buf[end] != '~' && buf[end] != 'u'))
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
/* Copy to the buffer. */
|
/* Copy to the buffer. */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user