From dcb4373f5fc85242f2c5a8fdd8993d6bb2198a5a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 16 Mar 2020 09:12:45 +0000 Subject: Terminate the output buffer for control mode output - it is now used as a string. GitHub issue 2114. --- usr.bin/tmux/control-notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/tmux/control-notify.c b/usr.bin/tmux/control-notify.c index 2e8b50f9c32..aeb6ad9adb4 100644 --- a/usr.bin/tmux/control-notify.c +++ b/usr.bin/tmux/control-notify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control-notify.c,v 1.25 2019/12/12 11:39:56 nicm Exp $ */ +/* $OpenBSD: control-notify.c,v 1.26 2020/03/16 09:12:44 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott @@ -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