changeset 9354:687ac828b964 HEAD

lib-index: modseqs weren't tracked properly within session when changes were done.
author Timo Sirainen <tss@iki.fi>
date Tue, 01 Sep 2009 13:05:03 -0400
parents 3c171f5eee8d
children cd48e01ff2a1
files src/lib-index/mail-transaction-log-append.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-append.c	Tue Sep 01 12:21:14 2009 -0400
+++ b/src/lib-index/mail-transaction-log-append.c	Tue Sep 01 13:05:03 2009 -0400
@@ -50,8 +50,7 @@
 		buffer_append(ctx->output, hdr_buf->data, hdr_buf->used);
 	buffer_append(ctx->output, buf->data, buf->used);
 
-	if (mail_transaction_header_has_modseq(buf->data,
-			CONST_PTR_OFFSET(buf->data, sizeof(hdr)), ctx->modseq))
+	if (mail_transaction_header_has_modseq(&hdr, buf->data, ctx->modseq))
 		ctx->modseq++;
 
 	/* update the size */