diff options
author | nicm <nicm> | 2020-03-16 09:12:44 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-16 09:12:44 +0000 |
commit | 7815b30c7d15cc5a728687de3a54f032c77cb4e3 (patch) | |
tree | eb495bab7b29d5cd120cb37f686333a8b79e2823 | |
parent | 9abeff7f0b8fcfab96af299a071de6483bf02a8f (diff) | |
download | rtmux-7815b30c7d15cc5a728687de3a54f032c77cb4e3.tar.gz rtmux-7815b30c7d15cc5a728687de3a54f032c77cb4e3.tar.bz2 rtmux-7815b30c7d15cc5a728687de3a54f032c77cb4e3.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); } |