[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-mail.c, 1.33, 1.33.2.1

tss at dovecot.org tss at dovecot.org
Sun Oct 15 11:35:59 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv13652/mbox

Modified Files:
      Tag: branch_1_0
	mbox-mail.c 
Log Message:
We added received date as time_t instead of uint32_t which crashed with
64bit systems.



Index: mbox-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-mail.c,v
retrieving revision 1.33
retrieving revision 1.33.2.1
diff -u -d -r1.33 -r1.33.2.1
--- mbox-mail.c	18 Jan 2006 22:16:40 -0000	1.33
+++ mbox-mail.c	15 Oct 2006 10:35:57 -0000	1.33.2.1
@@ -91,6 +91,7 @@
 	struct index_mail *mail = (struct index_mail *)_mail;
 	struct index_mail_data *data = &mail->data;
 	struct mbox_mailbox *mbox = (struct mbox_mailbox *)mail->ibox;
+	uint32_t t;
 
 	(void)index_mail_get_received_date(_mail);
 	if (data->received_date != (time_t)-1)
@@ -106,8 +107,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