aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/base64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base64.c b/lib/base64.c
index af01f3a69..a941cc73a 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -68,11 +68,11 @@ static size_t decodeQuantum(unsigned char *dest, const char *src)
}
}
- if(padding < 2)
+ if(padding < 1)
dest[2] = curlx_ultouc(x & 0xFFUL);
x >>= 8;
- if(padding < 1)
+ if(padding < 2)
dest[1] = curlx_ultouc(x & 0xFFUL);
x >>= 8;