1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

Christopher R. Palmer fixed Curl_base64_encode() to deal with zeroes in the

data to encode.
This commit is contained in:
Daniel Stenberg 2003-02-13 18:30:10 +00:00
parent 10e9bf623f
commit 3ddc7b9390

View File

@ -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++;