]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Getting headers as UTF-8 could have returned garbage for multi-line...
authorTimo Sirainen <tss@iki.fi>
Wed, 23 Nov 2011 22:53:37 +0000 (00:53 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 23 Nov 2011 22:53:37 +0000 (00:53 +0200)
src/lib-storage/index/index-mail-headers.c

index 7490e30289709fdeaac7d77a7b04e1c3c40deb67..8696e9817c2178457a7d666282e68df0b72cee2f 100644 (file)
@@ -717,7 +717,7 @@ index_mail_headers_decode(struct index_mail *mail, const char *const **_list,
 
                /* decode MIME encoded-words. decoding may also add new LFs. */
                if (message_header_decode_utf8((const unsigned char *)input,
-                                              strlen(list[i]), str, FALSE))
+                                              strlen(input), str, FALSE))
                        input = p_strdup(mail->data_pool, str_c(str));
                decoded_list[i] = input;
        }