changeset 8332:b41126d4379e HEAD

Fixed "no extension shrinking" code to work correctly.
author Timo Sirainen <tss@iki.fi>
date Sat, 25 Oct 2008 16:32:53 +0300
parents 8fb20b423f8b
children 0738739a8152
files src/lib-index/mail-index-sync-ext.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
 	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);