dovecot-2.2: lib-imap: imap_append_string_for_humans() was broke...

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 16 17:40:46 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/ea084c04e694
changeset: 15392:ea084c04e694
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 16 17:39:25 2012 +0200
description:
lib-imap: imap_append_string_for_humans() was broken for empty input string.

diffstat:

 src/lib-imap/imap-quote.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 482da7a91b1c -r ea084c04e694 src/lib-imap/imap-quote.c
--- a/src/lib-imap/imap-quote.c	Fri Nov 09 00:31:07 2012 +0200
+++ b/src/lib-imap/imap-quote.c	Fri Nov 16 17:39:25 2012 +0200
@@ -156,7 +156,7 @@
 			break;
 		}
 	}
-	if (last_lwsp) {
+	if (last_lwsp && i > 0) {
 		modify = TRUE;
 		remove_count++;
 	}


More information about the dovecot-cvs mailing list