Terminate the output buffer for control mode output - it is now used as

a string. GitHub issue 2114.
This commit is contained in:
nicm 2020-03-16 09:12:44 +00:00 committed by Nicholas Marriott
parent c0d74661b7
commit 4ffbebedce

View File

@ -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);
}