]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: When printing input from doveadm-server, don't truncate at NUL.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 8 Aug 2016 11:39:39 +0000 (14:39 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 8 Aug 2016 11:42:39 +0000 (14:42 +0300)
src/doveadm/server-connection.c

index f0c728ab24244416b20bf5a4380d97ecaab93dfb..18bcfe151d0a233aeaff532ef61b1adfc2df449d 100644 (file)
@@ -173,7 +173,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);
        }
 }