diff options
| author | 2019-05-07 10:25:15 +0000 | |
|---|---|---|
| committer | 2019-05-07 10:25:15 +0000 | |
| commit | fb601f47628f53c9efd501afe203098d66389be9 (patch) | |
| tree | bcfd7a4a2bba28a5e9f9cfb8f5aa5ee72ae7d688 /usr.bin/tmux/control-notify.c | |
| parent | Add support for std::filesystem. We're already installing the (diff) | |
| download | wireguard-openbsd-fb601f47628f53c9efd501afe203098d66389be9.tar.xz wireguard-openbsd-fb601f47628f53c9efd501afe203098d66389be9.zip | |
Do not use evbuffer_add_buffer because it is destructive and doesn't
work in newer libevent.
Diffstat (limited to 'usr.bin/tmux/control-notify.c')
| -rw-r--r-- | usr.bin/tmux/control-notify.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/tmux/control-notify.c b/usr.bin/tmux/control-notify.c index 5927a5e9322..650e42e9528 100644 --- a/usr.bin/tmux/control-notify.c +++ b/usr.bin/tmux/control-notify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control-notify.c,v 1.22 2018/11/19 13:35:40 nicm Exp $ */ +/* $OpenBSD: control-notify.c,v 1.23 2019/05/07 10:25:15 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -28,19 +28,14 @@ void control_notify_input(struct client *c, struct window_pane *wp, - struct evbuffer *input) + const u_char *buf, size_t len) { - u_char *buf; - size_t len; struct evbuffer *message; u_int i; if (c->session == NULL) return; - buf = EVBUFFER_DATA(input); - len = EVBUFFER_LENGTH(input); - /* * Only write input if the window pane is linked to a window belonging * to the client's session. |
