summaryrefslogtreecommitdiffstats
path: root/control-notify.c
diff options
context:
space:
mode:
authornicm <nicm>2020-03-16 09:12:44 +0000
committernicm <nicm>2020-03-16 09:12:44 +0000
commit7815b30c7d15cc5a728687de3a54f032c77cb4e3 (patch)
treeeb495bab7b29d5cd120cb37f686333a8b79e2823 /control-notify.c
parent9abeff7f0b8fcfab96af299a071de6483bf02a8f (diff)
Terminate the output buffer for control mode output - it is now used as
a string. GitHub issue 2114.
Diffstat (limited to 'control-notify.c')
-rw-r--r--control-notify.c1
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);
}