From: Timo Sirainen Date: Sun, 20 Jun 2004 20:46:11 +0000 (+0300) Subject: assertfix X-Git-Tag: 1.1.alpha1~3889 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbc92cfb17eb71d2ee9463c9cfd70dfea9a36bb6;p=thirdparty%2Fdovecot%2Fcore.git assertfix --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/mbox/mbox-sync.c b/src/lib-storage/index/mbox/mbox-sync.c index 29f15e24b7..101e5c0b82 100644 --- a/src/lib-storage/index/mbox/mbox-sync.c +++ b/src/lib-storage/index/mbox/mbox-sync.c @@ -488,7 +488,7 @@ static void update_from_offsets(struct mbox_sync_context *sync_ctx) mails = buffer_get_modifyable_data(sync_ctx->mails, &size); size /= sizeof(*mails); - i_assert(sync_ctx->need_space_seq - sync_ctx->seq + 1 == size); + i_assert(sync_ctx->seq - sync_ctx->need_space_seq + 1 == size); idx = 0; idx_seq = sync_ctx->need_space_idx_seq;