summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base64.c b/src/base64.c
index e59d963..1595bd0 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -118,7 +118,7 @@ unsigned char *base64decode(const char *buf, size_t *size)
break;
}
len = strcspn(ptr, "\r\n\t ");
- if (len > 0) {
+ if (len > 3) {
p+=base64decode_block(outbuf+p, ptr, len);
ptr += len;
} else {