dovecot-1.2: Transaction view: One more try at really fixing loo...

dovecot at dovecot.org dovecot at dovecot.org
Sat Sep 13 14:10:05 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/94c751fa58e3
changeset: 8199:94c751fa58e3
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Sep 13 14:09:59 2008 +0300
description:
Transaction view: One more try at really fixing lookup_ext()..

diffstat:

1 file changed, 4 insertions(+), 5 deletions(-)
src/lib-index/mail-index-transaction-view.c |    9 ++++-----

diffs (26 lines):

diff -r b50faeeefb4c -r 94c751fa58e3 src/lib-index/mail-index-transaction-view.c
--- a/src/lib-index/mail-index-transaction-view.c	Sat Sep 13 13:28:09 2008 +0300
+++ b/src/lib-index/mail-index-transaction-view.c	Sat Sep 13 14:09:59 2008 +0300
@@ -224,7 +224,7 @@ tview_return_updated_ext(struct mail_ind
 		}
 	}
 
-	if (ext->record_align <= sizeof(uint32_t)) {
+	if (record_align <= sizeof(uint32_t)) {
 		/* data is 32bit aligned already */
 		return data;
 	} else {
@@ -233,10 +233,9 @@ tview_return_updated_ext(struct mail_ind
 		if (tview->lookup_return_data == NULL) {
 			tview->lookup_return_data =
 				buffer_create_dynamic(default_pool,
-						      ext->record_size + 64);
-		}
-		buffer_write(tview->lookup_return_data,
-			     0, data, ext->record_size);
+						      record_size + 64);
+		}
+		buffer_write(tview->lookup_return_data, 0, data, record_size);
 		return tview->lookup_return_data->data;
 	}
 }


More information about the dovecot-cvs mailing list