dovecot: Whitespace skipping was broken.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Oct 22 21:58:49 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/d81a50101724
changeset: 6605:d81a50101724
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 22 21:58:45 2007 +0300
description:
Whitespace skipping was broken.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib/base64.c | 3 ++-
diffs (20 lines):
diff -r 1478fc5cf632 -r d81a50101724 src/lib/base64.c
--- a/src/lib/base64.c Sun Oct 21 20:36:35 2007 +0300
+++ b/src/lib/base64.c Mon Oct 22 21:58:45 2007 +0300
@@ -90,7 +90,7 @@ int base64_decode(const void *src, size_
unsigned char input[4], output[3];
int ret = 1;
- for (src_pos = 0; src_pos+3 < src_size; src_pos += 4) {
+ 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++]))
@@ -126,6 +126,7 @@ int base64_decode(const void *src, size_
output[2] = ((input[2] << 6) & 0xc0) | input[3];
buffer_append(dest, output, 3);
+ src_pos += 4;
}
for (; src_pos < src_size; src_pos++) {
More information about the dovecot-cvs
mailing list