diff --git a/tty-keys.c b/tty-keys.c index 17fe47ad..a04d951d 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -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;