From 7815b30c7d15cc5a728687de3a54f032c77cb4e3 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 16 Mar 2020 09:12:44 +0000 Subject: Terminate the output buffer for control mode output - it is now used as a string. GitHub issue 2114. --- control-notify.c | 1 + 1 file changed, 1 insertion(+) (limited to 'control-notify.c') diff --git a/control-notify.c b/control-notify.c index babfcf2d..a513c147 100644 --- a/control-notify.c +++ b/control-notify.c @@ -54,6 +54,7 @@ control_notify_input(struct client *c, struct window_pane *wp, else evbuffer_add_printf(message, "%c", buf[i]); } + evbuffer_add(message, "", 1); control_write(c, "%s", EVBUFFER_DATA(message)); evbuffer_free(message); } -- cgit v1.2.3