From: Timo Sirainen Date: Thu, 10 Jul 2003 18:10:20 +0000 (+0300) Subject: compile fix X-Git-Tag: 1.1.alpha1~4493 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=445595608623a19d24ed2b274defcaf8937dadd3;p=thirdparty%2Fdovecot%2Fcore.git compile fix --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-modifylog.c b/src/lib-index/mail-modifylog.c index a90bb19144..2738970a4b 100644 --- a/src/lib-index/mail-modifylog.c +++ b/src/lib-index/mail-modifylog.c @@ -889,7 +889,7 @@ static int mail_modifylog_try_truncate(struct modify_log_file *file) return FALSE; #ifdef DEBUG - mprotect(file->header, sizeof(struct modify_log_header), + mprotect(file->mmap_base, sizeof(struct modify_log_header), PROT_READ | PROT_WRITE); #endif file->header->sync_id = 0;