commit | 3ddc7b939028cbb391f093bd14a49030ada5182e | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Thu Feb 13 18:30:10 2003 +0000 |
committer | Daniel Stenberg <daniel@haxx.se> | Thu Feb 13 18:30:10 2003 +0000 |
tree | e6fe98a8478c6772b0eff0cc7f82cfd5080a3719 | |
parent | 10e9bf623f29ea27ddc73e030e63f859b7156289 [diff] |
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 9706c74..0f461ea 100644 --- a/lib/base64.c +++ b/lib/base64.c
@@ -135,7 +135,7 @@ while(insize > 0) { for (i = inputparts = 0; i < 3; i++) { - if(*indata) { + if(insize > 0) { inputparts++; ibuf[i] = *indata; indata++;