From: Daniel Stenberg Date: Thu, 13 Feb 2003 18:30:10 +0000 (+0000) Subject: Christopher R. Palmer fixed Curl_base64_encode() to deal with zeroes in the X-Git-Tag: curl-7_10_4~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ddc7b939028cbb391f093bd14a49030ada5182e;p=curl Christopher R. Palmer fixed Curl_base64_encode() to deal with zeroes in the data to encode. --- 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++;