[dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.18, 1.19

cras at dovecot.org cras at dovecot.org
Sun Sep 12 19:32:07 EEST 2004


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

Modified Files:
	mail-cache-compress.c 
Log Message:
bitmask merging code was corrupting the cache file



Index: mail-cache-compress.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-compress.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- mail-cache-compress.c	12 Sep 2004 14:17:42 -0000	1.18
+++ mail-cache-compress.c	12 Sep 2004 16:32:05 -0000	1.19
@@ -26,7 +26,7 @@
 		buf_field = *((uint32_t *)PTR_OFFSET(buf_data, pos));
 		pos += sizeof(uint32_t);
 
-		buf_data_size = cache->fields[field].field.field_size;
+		buf_data_size = cache->fields[buf_field].field.field_size;
 		if (buf_data_size == (unsigned int)-1) {
 			buf_data_size =
 				*((uint32_t *)PTR_OFFSET(buf_data, pos));



More information about the dovecot-cvs mailing list