mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 04:27:00 +00:00
Both terminators \007 and \033\\ leave the index pointing to the final
character of the terminator, so correct the size calculation to always add one. GitHub issue 4082.
This commit is contained in:
@ -1212,7 +1212,7 @@ tty_keys_clipboard(struct tty *tty, const char *buf, size_t len, size_t *size)
|
||||
}
|
||||
if (end == len)
|
||||
return (1);
|
||||
*size = end + terminator;
|
||||
*size = end + 1;
|
||||
|
||||
/* Skip the initial part. */
|
||||
buf += 5;
|
||||
|
Reference in New Issue
Block a user