dovecot: deliver didn't ignore TABs the same way spaces were ign...

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 8 15:26:53 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/8992a20c229f
changeset: 6235:8992a20c229f
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 08 15:26:45 2007 +0300
description:
deliver didn't ignore TABs the same way spaces were ignored.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/deliver/deliver.c |    4 ++--

diffs (21 lines):

diff -r 616872f3710c -r 8992a20c229f src/deliver/deliver.c
--- a/src/deliver/deliver.c	Tue Aug 07 15:33:10 2007 +0300
+++ b/src/deliver/deliver.c	Wed Aug 08 15:26:45 2007 +0300
@@ -284,7 +284,7 @@ static void config_file_init(const char 
 			continue;
 		}
 
-		while (p > line && p[-1] == ' ') p--;
+		while (p > line && IS_WHITE(p[-1])) p--;
 		key = t_strdup_until(line, p);
 
 		if (sections > 0 && !lda_section) {
@@ -295,7 +295,7 @@ static void config_file_init(const char 
 
 		do {
 			value++;
-		} while (*value == ' ');
+		} while (IS_WHITE(*value));
 
 		len = strlen(value);
 		if (len > 0 &&


More information about the dovecot-cvs mailing list