[dovecot-cvs] dovecot/src/lib-charset charset-utf8.c,1.11,1.12

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


Update of /var/lib/cvs/dovecot/src/lib-charset
In directory talvi:/tmp/cvs-serv10130/lib-charset

Modified Files:
	charset-utf8.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: charset-utf8.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-charset/charset-utf8.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- charset-utf8.c	21 Sep 2003 16:21:37 -0000	1.11
+++ charset-utf8.c	8 Oct 2004 17:51:48 -0000	1.12
@@ -22,7 +22,7 @@
 {
 	buffer_t *dest;
 
-	dest = buffer_create_dynamic(pool_datastack_create(), size, (size_t)-1);
+	dest = buffer_create_dynamic(pool_datastack_create(), size);
 	_charset_utf8_ucase(data, size, dest, 0);
 	if (utf8_size_r != NULL)
 		*utf8_size_r = buffer_get_used_size(dest);



More information about the dovecot-cvs mailing list