Mercurial > dovecot > original-hg > dovecot-2.1
changeset 14929:311371856dcf
message-decode: Minor fix to previous change.
The == condition should probably never happen, but handle it anyway.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 27 Feb 2013 13:07:35 +0200 |
parents | cf7b590d19f9 |
children | 09fcb43c47a4 |
files | src/lib-mail/message-decoder.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-mail/message-decoder.c Wed Feb 27 13:05:40 2013 +0200 +++ b/src/lib-mail/message-decoder.c Wed Feb 27 13:07:35 2013 +0200 @@ -222,7 +222,7 @@ (void)charset_to_utf8(ctx->charset_trans, trans_buf, &trans_size, ctx->buf2); - if (trans_size < ctx->translation_size) { + if (trans_size <= ctx->translation_size) { /* need more data to finish the translation. */ i_assert(orig_size < MAX_TRANSLATION_BUF_SIZE); memcpy(ctx->translation_buf, trans_buf, orig_size);