From: Timo Sirainen Date: Sat, 21 Apr 2018 12:42:53 +0000 (+0300) Subject: doveadm: Fix table printer to not truncate output at NULs X-Git-Tag: 2.3.9~1982 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bb4e53ea674fe84dc0e1633f1cf1cb5f2fd2e49;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Fix table printer to not truncate output at NULs --- diff --git a/src/doveadm/doveadm-print-table.c b/src/doveadm/doveadm-print-table.c index c455fc7764..9ea2ee4115 100644 --- a/src/doveadm/doveadm-print-table.c +++ b/src/doveadm/doveadm-print-table.c @@ -216,7 +216,7 @@ doveadm_print_table_print_stream(const unsigned char *value, size_t size) i_fatal("table formatter doesn't support multi-line values"); if (size != 0) - str_append_n(ctx->stream, value, size); + str_append_data(ctx->stream, value, size); else { doveadm_print_table_print(str_c(ctx->stream)); str_truncate(ctx->stream, 0);