dovecot-2.1: dbox: Minor code correctness fix.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 24 03:52:41 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/096c12e69fd6
changeset: 13985:096c12e69fd6
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jan 24 03:51:20 2012 +0200
description:
dbox: Minor code correctness fix.

diffstat:

 src/lib-storage/index/dbox-common/dbox-attachment.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4e3f2ee77b37 -r 096c12e69fd6 src/lib-storage/index/dbox-common/dbox-attachment.c
--- a/src/lib-storage/index/dbox-common/dbox-attachment.c	Tue Jan 24 03:50:36 2012 +0200
+++ b/src/lib-storage/index/dbox-common/dbox-attachment.c	Tue Jan 24 03:51:20 2012 +0200
@@ -208,7 +208,7 @@
 				(*stream)->v_offset, psize);
 			ret = 0;
 		} else {
-			uoff_t trailer_size = psize - (*stream)->v_offset;
+			uoff_t trailer_size = psize - last_voffset;
 
 			input = i_stream_create_limit(*stream, trailer_size);
 			array_append(&streams, &input, 1);


More information about the dovecot-cvs mailing list