[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.98, 1.99

cras at dovecot.org cras at dovecot.org
Fri Oct 8 20:51:51 EEST 2004


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

Modified Files:
	mbox-sync.c 
Log Message:
Buffer API change: we no longer support limited sized buffers where
writes past limit wouldn't kill the process. They weren't used hardly
anywhere, they could have hidden bugs and the code for handling them was too
complex.

This also changed base64 and hex-binary APIs.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- mbox-sync.c	8 Oct 2004 12:01:11 -0000	1.98
+++ mbox-sync.c	8 Oct 2004 17:51:49 -0000	1.99
@@ -1305,8 +1305,8 @@
 	sync_ctx.sync_view = sync_view;
 	sync_ctx.t = mail_index_transaction_begin(sync_view, FALSE);
 
-	sync_ctx.mails = buffer_create_dynamic(default_pool, 4096, (size_t)-1);
-	sync_ctx.syncs = buffer_create_dynamic(default_pool, 256, (size_t)-1);
+	sync_ctx.mails = buffer_create_dynamic(default_pool, 4096);
+	sync_ctx.syncs = buffer_create_dynamic(default_pool, 256);
 
 	ret = mail_index_get_header(sync_view, &sync_ctx.hdr);
 	i_assert(ret == 0);



More information about the dovecot-cvs mailing list