mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Correctly adjust the end pointer for a two character terminator before
decoding OSC 52 response, from Daniel Ekloef in GitHub issue 2942.
This commit is contained in:
parent
7bd9cdf6fc
commit
289ac55ebd
@ -1204,6 +1204,9 @@ tty_keys_clipboard(__unused struct tty *tty, const char *buf, size_t len,
|
||||
buf += 5;
|
||||
end -= 5;
|
||||
|
||||
/* Adjust end so that it points to the start of the terminator. */
|
||||
end -= terminator - 1;
|
||||
|
||||
/* Get the second argument. */
|
||||
while (end != 0 && *buf != ';') {
|
||||
buf++;
|
||||
|
Loading…
Reference in New Issue
Block a user