From: Timo Sirainen Date: Mon, 8 Aug 2016 11:39:39 +0000 (+0300) Subject: doveadm: When printing input from doveadm-server, don't truncate at NUL. X-Git-Tag: 2.2.26~398 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c5c13e06fac3c2eef0d0349faa0ccfb54598336;p=thirdparty%2Fdovecot%2Fcore.git doveadm: When printing input from doveadm-server, don't truncate at NUL. --- diff --git a/src/doveadm/server-connection.c b/src/doveadm/server-connection.c index c4653fcaf7..a2c1ce5281 100644 --- a/src/doveadm/server-connection.c +++ b/src/doveadm/server-connection.c @@ -161,7 +161,8 @@ static void server_flush_field(struct server_connection *conn, string_t *str, } else { str_truncate(str, 0); str_append_tabunescaped(str, data, size); - doveadm_print(str_c(str)); + doveadm_print_stream(str->data, str->used); + doveadm_print_stream("", 0); } }