diff options
author | nicm <nicm> | 2020-03-16 09:12:44 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-03-17 16:14:51 +0000 |
commit | 4ffbebedce48d1758e082a82cbe9292fee358992 (patch) | |
tree | 6fed2c9f12587057bd40a3d4eb181b9d67fdb843 | |
parent | c0d74661b7a176340a3ceaa77622d6c3747a2984 (diff) | |
download | rtmux-4ffbebedce48d1758e082a82cbe9292fee358992.tar.gz rtmux-4ffbebedce48d1758e082a82cbe9292fee358992.tar.bz2 rtmux-4ffbebedce48d1758e082a82cbe9292fee358992.zip |
Terminate the output buffer for control mode output - it is now used as
a string. GitHub issue 2114.
-rw-r--r-- | control-notify.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |