[dovecot-cvs] dovecot/src/lib strfuncs.c, 1.44, 1.45 strfuncs.h, 1.23, 1.24

cras at dovecot.org cras at dovecot.org
Fri Jan 7 20:09:43 EET 2005


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

Modified Files:
	strfuncs.c strfuncs.h 
Log Message:
Renamed strarray_join() to t_strarray_join() and made it not to crash..



Index: strfuncs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- strfuncs.c	6 Jan 2005 18:09:08 -0000	1.44
+++ strfuncs.c	7 Jan 2005 18:09:41 -0000	1.45
@@ -558,11 +558,12 @@
 	return count;
 }
 
-const char *strarray_join(const char *const *arr, const char *separator)
+const char *t_strarray_join(const char *const *arr, const char *separator)
 {
 	size_t alloc_len, sep_len, len, pos, needed_space;
 	char *str;
 
+	sep_len = strlen(separator);
         alloc_len = 64;
         str = t_buffer_get(alloc_len);
 

Index: strfuncs.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- strfuncs.h	6 Jan 2005 18:09:08 -0000	1.23
+++ strfuncs.h	7 Jan 2005 18:09:41 -0000	1.24
@@ -68,7 +68,7 @@
 /* Return length of NULL-terminated list string array */
 unsigned int strarray_length(const char *const *arr);
 /* Return all strings from array joined into one string. */
-const char *strarray_join(const char *const *arr, const char *separator);
+const char *t_strarray_join(const char *const *arr, const char *separator);
 
 /* INTERNAL */
 const char *_vstrconcat(const char *str1, va_list args, size_t *ret_len);



More information about the dovecot-cvs mailing list