diff options
author | 2013-05-31 12:50:05 +0000 | |
---|---|---|
committer | 2013-05-31 12:50:05 +0000 | |
commit | 69bbe7b069659cff62d23e7cd79c02736557847e (patch) | |
tree | 7fc2e036a8ca780ef2764a80deefdbfcbc654d9f /usr.bin/tmux/cmd-send-keys.c | |
parent | Use time_t where appropriate. ok djm (diff) | |
download | wireguard-openbsd-69bbe7b069659cff62d23e7cd79c02736557847e.tar.xz wireguard-openbsd-69bbe7b069659cff62d23e7cd79c02736557847e.zip |
Use u_char for the send-keys string to avoid mangling top-bit-set
characters when they are promoted to int and passed to
window_pane_key. Reported by Jacob Bang.
Diffstat (limited to 'usr.bin/tmux/cmd-send-keys.c')
-rw-r--r-- | usr.bin/tmux/cmd-send-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-send-keys.c b/usr.bin/tmux/cmd-send-keys.c index c0c597ad557..2b7a79a277d 100644 --- a/usr.bin/tmux/cmd-send-keys.c +++ b/usr.bin/tmux/cmd-send-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-send-keys.c,v 1.15 2013/03/24 09:54:10 nicm Exp $ */ +/* $OpenBSD: cmd-send-keys.c,v 1.16 2013/05/31 12:50:05 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -56,7 +56,7 @@ cmd_send_keys_exec(struct cmd *self, struct cmd_q *cmdq) struct window_pane *wp; struct session *s; struct input_ctx *ictx; - const char *str; + const u_char *str; int i, key; if (cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp) == NULL) |