From 69440d19b783c72139f22c5c72b34b55d99e71de Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 7 May 2019 10:25:15 +0000 Subject: Do not use evbuffer_add_buffer because it is destructive and doesn't work in newer libevent. --- control-notify.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'control-notify.c') diff --git a/control-notify.c b/control-notify.c index 7b28e8f0..340dab73 100644 --- a/control-notify.c +++ b/control-notify.c @@ -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. -- cgit