]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
compile fix
authorTimo Sirainen <tss@iki.fi>
Thu, 10 Jul 2003 18:10:20 +0000 (21:10 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 10 Jul 2003 18:10:20 +0000 (21:10 +0300)
--HG--
branch : HEAD

src/lib-index/mail-modifylog.c

index a90bb191445f75a77c71eff388d4bc2bc1a30a42..2738970a4b367943ae706990c9bb8e745eee023b 100644 (file)
@@ -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;