[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.159,1.160

cras at dovecot.org cras at dovecot.org
Mon Oct 25 23:04:45 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv22987/lib-index

Modified Files:
	mail-index.c 
Log Message:
one more major version change fix



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -d -r1.159 -r1.160
--- mail-index.c	25 Oct 2004 19:55:19 -0000	1.159
+++ mail-index.c	25 Oct 2004 20:04:43 -0000	1.160
@@ -428,7 +428,7 @@
 			pos += ret;
 	}
 
-	if (ret > (ssize_t)offsetof(struct mail_index_header, major_version) &&
+	if (pos > (ssize_t)offsetof(struct mail_index_header, major_version) &&
 	    hdr.major_version != MAIL_INDEX_MAJOR_VERSION) {
 		/* major version change - handle silently */
 		return 0;



More information about the dovecot-cvs mailing list