[dovecot-cvs] dovecot/src/lib strfuncs.c,1.45,1.46

cras at dovecot.org cras at dovecot.org
Fri Apr 8 02:06:03 EEST 2005


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

Modified Files:
	strfuncs.c 
Log Message:
t_strarray_join() wasn't actually marking the memory allocated that it was
returning from data stack. So it might have returned garbage.



Index: strfuncs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- strfuncs.c	7 Jan 2005 18:09:41 -0000	1.45
+++ strfuncs.c	7 Apr 2005 23:06:01 -0000	1.46
@@ -584,6 +584,7 @@
 		pos += len;
 	}
 	str[pos] = '\0';
+	t_buffer_alloc(pos + 1);
 	return str;
 }
 



More information about the dovecot-cvs mailing list