diff options
-rw-r--r-- | lib/base64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base64.c b/lib/base64.c index 9706c74fb..0f461eabd 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -135,7 +135,7 @@ int Curl_base64_encode(const void *inp, int insize, char **outptr) while(insize > 0) { for (i = inputparts = 0; i < 3; i++) { - if(*indata) { + if(insize > 0) { inputparts++; ibuf[i] = *indata; indata++; |