diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-05-31 12:50:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-05-31 12:50:05 +0000 |
commit | 9fb9f78e43337833825ae464a1c39ed6d78a2fdb (patch) | |
tree | 4e33ed08af55a574ea6470f36f3d45423db6ccd2 | |
parent | a0cf65db77343cf60a72c59596ccfcaebe91c663 (diff) | |
download | rtmux-9fb9f78e43337833825ae464a1c39ed6d78a2fdb.tar.gz rtmux-9fb9f78e43337833825ae464a1c39ed6d78a2fdb.tar.bz2 rtmux-9fb9f78e43337833825ae464a1c39ed6d78a2fdb.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.
-rw-r--r-- | cmd-send-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 3ee3dbe6..dcd5f288 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -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) |