[dovecot-cvs] dovecot/src/lib-imap imap-quote.c,1.13,1.14

cras at procontrol.fi cras at procontrol.fi
Wed Jun 4 20:03:49 EEST 2003


Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv10922/lib-imap

Modified Files:
	imap-quote.c 
Log Message:
Actually it should assume that beginning of string is LWSP..



Index: imap-quote.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-quote.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- imap-quote.c	4 Jun 2003 16:03:15 -0000	1.13
+++ imap-quote.c	4 Jun 2003 16:03:47 -0000	1.14
@@ -8,7 +8,7 @@
 		       size_t value_len)
 {
 	size_t i, linefeeds = 0;
-	int last_lwsp = FALSE, literal = FALSE, modify = FALSE;
+	int last_lwsp = TRUE, literal = FALSE, modify = FALSE;
 
 	if (value == NULL) {
 		str_append(str, "NIL");
@@ -54,7 +54,7 @@
 	if (!modify)
 		str_append_n(str, value, value_len);
 	else {
-		last_lwsp = FALSE;
+		last_lwsp = TRUE;
 		for (i = 0; i < value_len; i++) {
 			switch (value[i]) {
 			case 0:



More information about the dovecot-cvs mailing list