dovecot: Fixed skipping whitespace.

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 6 23:37:21 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/ebe275c91ba4
changeset: 6712:ebe275c91ba4
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 06 23:37:18 2007 +0200
description:
Fixed skipping whitespace.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/lib/base64.c |    4 +++-

diffs (15 lines):

diff -r 7e969a570307 -r ebe275c91ba4 src/lib/base64.c
--- a/src/lib/base64.c	Tue Nov 06 22:47:19 2007 +0200
+++ b/src/lib/base64.c	Tue Nov 06 23:37:18 2007 +0200
@@ -93,8 +93,10 @@ int base64_decode(const void *src, size_
 	for (src_pos = 0; src_pos+3 < src_size; ) {
 		input[0] = b64dec[src_c[src_pos]];
 		if (input[0] == 0xff) {
-			if (IS_EMPTY(src_c[src_pos++]))
+			if (IS_EMPTY(src_c[src_pos])) {
+				src_pos++;
 				continue;
+			}
 			return -1;
 		}
 


More information about the dovecot-cvs mailing list