[dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.17,
1.18
cras at dovecot.org
cras at dovecot.org
Sun Sep 12 17:17:44 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv4877/lib-index
Modified Files:
mail-cache-compress.c
Log Message:
fix
Index: mail-cache-compress.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-compress.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- mail-cache-compress.c 12 Sep 2004 14:02:46 -0000 1.17
+++ mail-cache-compress.c 12 Sep 2004 14:17:42 -0000 1.18
@@ -17,13 +17,13 @@
size_t data_size)
{
void *buf_data;
- uint32_t buf_file_field;
+ uint32_t buf_field;
unsigned int i, buf_data_size;
size_t pos, buf_size;
buf_data = buffer_get_modifyable_data(buffer, &buf_size);
for (pos = sizeof(struct mail_cache_record); pos < buf_size; ) {
- buf_file_field = *((uint32_t *)PTR_OFFSET(buf_data, pos));
+ buf_field = *((uint32_t *)PTR_OFFSET(buf_data, pos));
pos += sizeof(uint32_t);
buf_data_size = cache->fields[field].field.field_size;
@@ -33,7 +33,7 @@
pos += sizeof(uint32_t);
}
- if (cache->file_field_map[buf_file_field] == field) {
+ if (buf_field == field) {
/* found it, do the merging */
unsigned char *dest = PTR_OFFSET(buf_data, pos);
More information about the dovecot-cvs
mailing list