dovecot-2.1: message-decode: Minor fix to previous change.

dovecot at dovecot.org dovecot at dovecot.org
Wed Feb 27 13:07:42 EET 2013


details:   http://hg.dovecot.org/dovecot-2.1/rev/311371856dcf
changeset: 14929:311371856dcf
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Feb 27 13:07:35 2013 +0200
description:
message-decode: Minor fix to previous change.
The == condition should probably never happen, but handle it anyway.

diffstat:

 src/lib-mail/message-decoder.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cf7b590d19f9 -r 311371856dcf src/lib-mail/message-decoder.c
--- 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);


More information about the dovecot-cvs mailing list