[dovecot-cvs] dovecot/src/lib strfuncs.c,1.52,1.53

cras at dovecot.org cras at dovecot.org
Mon Jan 2 12:04:15 EET 2006


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

Modified Files:
	strfuncs.c 
Log Message:
t_strarray_join() was broken with input longer than 63 bytes (good thing we
didn't use it in any important places). Patch by Johan Kiviniemi.



Index: strfuncs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- strfuncs.c	1 Jan 2006 19:37:56 -0000	1.52
+++ strfuncs.c	2 Jan 2006 10:04:12 -0000	1.53
@@ -601,7 +601,7 @@
 	for (pos = 0; *arr != NULL; arr++) {
 		len = strlen(*arr);
 		needed_space = pos + len + sep_len + 1;
-		if (needed_space < alloc_len) {
+		if (needed_space > alloc_len) {
 			alloc_len = nearest_power(needed_space);
 			str = t_buffer_reget(str, alloc_len);
 		}



More information about the dovecot-cvs mailing list