dovecot-1.2: Fixed "no extension shrinking" code to work correctly.

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 25 16:32:57 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/b41126d4379e
changeset: 8332:b41126d4379e
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 25 16:32:53 2008 +0300
description:
Fixed "no extension shrinking" code to work correctly.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-index/mail-index-sync-ext.c |    3 ++-

diffs (14 lines):

diff -r 8fb20b423f8b -r b41126d4379e src/lib-index/mail-index-sync-ext.c
--- a/src/lib-index/mail-index-sync-ext.c	Sat Oct 25 16:07:28 2008 +0300
+++ b/src/lib-index/mail-index-sync-ext.c	Sat Oct 25 16:32:53 2008 +0300
@@ -276,8 +276,9 @@ sync_ext_resize(const struct mail_transa
 
 	if (new_size < old_size) {
 		/* header shrank */
-		if (!no_shrink) {
+		if (no_shrink)
 			new_size = old_size;
+		else {
 			buffer_delete(map->hdr_copy_buf,
 				      ext->hdr_offset + new_size,
 				      old_size - new_size);


More information about the dovecot-cvs mailing list