From 3ddc7b939028cbb391f093bd14a49030ada5182e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 13 Feb 2003 18:30:10 +0000 Subject: Christopher R. Palmer fixed Curl_base64_encode() to deal with zeroes in the data to encode. --- lib/base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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++; -- cgit v1.2.3