[dovecot-cvs] dovecot/src/lib strfuncs.c,1.49,1.50

cras at dovecot.org cras at dovecot.org
Sun Sep 25 13:52:29 EEST 2005


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

Modified Files:
	strfuncs.c 
Log Message:
*_strsplit_spaces(): Ignore trailing spaces.



Index: strfuncs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- strfuncs.c	25 Sep 2005 10:24:09 -0000	1.49
+++ strfuncs.c	25 Sep 2005 10:52:27 -0000	1.50
@@ -532,6 +532,10 @@
 			else {
 				*str = '\0';
 				while (str[1] == ' ') str++;
+
+				/* ignore trailing spaces */
+				if (str[1] == '\0')
+					break;
 			}
 
 			array[count++] = str+1;



More information about the dovecot-cvs mailing list