diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-10-21 12:01:10 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-10-21 12:01:10 +0100 |
commit | be2413292f6e94aca0a5c707254db62a2b186f84 (patch) | |
tree | 2739127739d5dba9b10a4e7aec3c423bae683c0b /tty-keys.c | |
parent | 1bf2f811ea8835dd24bdb773b5be4df517767d1f (diff) | |
parent | 289ac55ebde18df237ad21734ba4056896d11022 (diff) | |
download | rtmux-be2413292f6e94aca0a5c707254db62a2b186f84.tar.gz rtmux-be2413292f6e94aca0a5c707254db62a2b186f84.tar.bz2 rtmux-be2413292f6e94aca0a5c707254db62a2b186f84.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tty-keys.c')
-rw-r--r-- | tty-keys.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++; |