mirror of https://github.com/tmux/tmux.git
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…
Reference in New Issue