diff options
author | 2019-05-03 18:00:19 +0000 | |
---|---|---|
committer | 2019-05-03 18:00:19 +0000 | |
commit | a35741c0243388210361292bda14ce574ebd7578 (patch) | |
tree | 429e59b2da0efca1ecb963323059decfbd6524c5 /usr.bin/tmux/tty-keys.c | |
parent | When processing unknown output options, prevent passing NULL to printf. (diff) | |
download | wireguard-openbsd-a35741c0243388210361292bda14ce574ebd7578.tar.xz wireguard-openbsd-a35741c0243388210361292bda14ce574ebd7578.zip |
Use the right index for user-keys.
Diffstat (limited to 'usr.bin/tmux/tty-keys.c')
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 3f205ab6ce3..64593f19925 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.111 2019/05/03 14:51:31 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.112 2019/05/03 18:00:19 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -429,6 +429,7 @@ tty_keys_build(struct tty *tty) if (o != NULL) { a = options_array_first(o); while (a != NULL) { + i = options_array_item_index(a); ov = options_array_item_value(a); tty_keys_add(tty, ov->string, KEYC_USER + i); a = options_array_next(a); |