[dovecot-cvs] dovecot/src/lib-storage mail-search.c,1.16,1.17

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

Modified Files:
	mail-search.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: mail-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-search.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- mail-search.c	6 Aug 2004 18:05:45 -0000	1.16
+++ mail-search.c	8 Oct 2004 17:51:49 -0000	1.17
@@ -163,8 +163,7 @@
 
 	*have_headers = *have_body = have_text = FALSE;
 
-	headers = buffer_create_dynamic(pool_datastack_create(),
-					128, (size_t)-1);
+	headers = buffer_create_dynamic(pool_datastack_create(), 128);
 	for (; args != NULL; args = args->next) {
 		search_arg_analyze(args, headers, have_headers,
 				   have_body, &have_text);



More information about the dovecot-cvs mailing list