]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Revert earlier NUL-printing change 793b024bf.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 8 Aug 2016 16:11:16 +0000 (19:11 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 8 Aug 2016 16:30:24 +0000 (19:30 +0300)
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.

src/doveadm/server-connection.c

index a2c1ce5281a45a5d267e53f57e35e291492c918a..c4653fcaf7aae5202cc2f5b8fdc8338fc266fd8a 100644 (file)
@@ -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));
        }
 }