From: Timo Sirainen Date: Mon, 8 Aug 2016 16:11:16 +0000 (+0300) Subject: doveadm: Revert earlier NUL-printing change 793b024bf. X-Git-Tag: 2.2.26~392 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0e641d16049bf5df65f18164f70bf842ab394a2;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Revert earlier NUL-printing change 793b024bf. It changes the output in ways that are a bit difficult to fix. Also the the important part where NULs printing is useful is in a message body, which should work even without this change. So for now just revert it. --- diff --git a/src/doveadm/server-connection.c b/src/doveadm/server-connection.c index a2c1ce5281..c4653fcaf7 100644 --- a/src/doveadm/server-connection.c +++ b/src/doveadm/server-connection.c @@ -161,8 +161,7 @@ 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_stream(str->data, str->used); - doveadm_print_stream("", 0); + doveadm_print(str_c(str)); } }