[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-uidlist.c, 1.31, 1.32

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/maildir
In directory talvi:/tmp/cvs-serv10130/lib-storage/index/maildir

Modified Files:
	maildir-uidlist.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: maildir-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-uidlist.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- maildir-uidlist.c	5 Sep 2004 20:17:33 -0000	1.31
+++ maildir-uidlist.c	8 Oct 2004 17:51:49 -0000	1.32
@@ -132,8 +132,7 @@
 	uidlist->fname =
 		i_strconcat(ibox->control_dir, "/" MAILDIR_UIDLIST_NAME, NULL);
 	uidlist->lock_fd = -1;
-	uidlist->record_buf =
-		buffer_create_dynamic(default_pool, 512, (size_t)-1);
+	uidlist->record_buf = buffer_create_dynamic(default_pool, 512);
 	uidlist->files = hash_create(default_pool, default_pool, 4096,
 				     maildir_hash, maildir_cmp);
 
@@ -581,7 +580,7 @@
 				 maildir_hash, maildir_cmp);
 
 	size = buffer_get_used_size(uidlist->record_buf);
-	ctx->record_buf = buffer_create_dynamic(default_pool, size, (size_t)-1);
+	ctx->record_buf = buffer_create_dynamic(default_pool, size);
 	return ctx;
 }
 



More information about the dovecot-cvs mailing list