]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Use str_append_tabescaped_n
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 8 Aug 2016 08:38:54 +0000 (11:38 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 8 Aug 2016 12:56:40 +0000 (15:56 +0300)
src/doveadm/doveadm-print-server.c

index 89d6ab940318fff5e1008e406cd2a393443be620..3862454ca96a345d9acf06d5e83330324b000f63 100644 (file)
@@ -54,9 +54,7 @@ doveadm_print_server_print_stream(const unsigned char *value, size_t size)
                doveadm_print_server_print("");
                return;
        }
-       T_BEGIN {
-               str_append_tabescaped(ctx.str, t_strndup(value, size));
-       } T_END;
+       str_append_tabescaped_n(ctx.str, value, size);
 
        if (str_len(ctx.str) >= IO_BLOCK_SIZE)
                doveadm_print_server_flush();