[dovecot-cvs] dovecot/src/lib-imap imap-base-subject.c,1.9,1.10

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


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

Modified Files:
	imap-base-subject.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: imap-base-subject.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-imap/imap-base-subject.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- imap-base-subject.c	2 Sep 2004 10:34:30 -0000	1.9
+++ imap-base-subject.c	8 Oct 2004 17:51:48 -0000	1.10
@@ -241,7 +241,7 @@
 		*is_reply_or_forward_r = FALSE;
 
 	subject_len = strlen(subject);
-	buf = buffer_create_dynamic(pool, subject_len, (size_t)-1);
+	buf = buffer_create_dynamic(pool, subject_len);
 
 	/* (1) Convert any RFC 2047 encoded-words in the subject to
 	   UTF-8.  Convert all tabs and continuations to space.



More information about the dovecot-cvs mailing list