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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/3903bc4fc618
changeset: 7885:3903bc4fc618
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Sep 13 14:10:21 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 8850d4cc2b51 -r 3903bc4fc618 src/lib-index/mail-index-transaction-view.c
--- a/src/lib-index/mail-index-transaction-view.c	Sat Sep 13 13:28:24 2008 +0300
+++ b/src/lib-index/mail-index-transaction-view.c	Sat Sep 13 14:10:21 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