[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-mail.c, 1.14, 1.15
tss at dovecot.org
tss at dovecot.org
Sun Oct 15 11:36:29 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv13633/dbox
Modified Files:
dbox-mail.c
Log Message:
We added received date as time_t instead of uint32_t which crashed with
64bit systems.
Index: dbox-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-mail.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- dbox-mail.c 23 Jul 2006 22:41:43 -0000 1.14
+++ dbox-mail.c 15 Oct 2006 10:36:27 -0000 1.15
@@ -153,6 +153,7 @@
struct index_mail *mail = (struct index_mail *)_mail;
struct index_mail_data *data = &mail->data;
uoff_t offset;
+ uint32_t t;
(void)index_mail_get_received_date(_mail);
if (data->received_date != (time_t)-1)
@@ -166,8 +167,8 @@
data->received_date = 0;
}
- index_mail_cache_add(mail, MAIL_CACHE_RECEIVED_DATE,
- &data->received_date, sizeof(data->received_date));
+ t = data->received_date;
+ index_mail_cache_add(mail, MAIL_CACHE_RECEIVED_DATE, &t, sizeof(t));
return data->received_date;
}
More information about the dovecot-cvs
mailing list