mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Christopher R. Palmer fixed Curl_base64_encode() to deal with zeroes in the
data to encode.
This commit is contained in:
parent
10e9bf623f
commit
3ddc7b9390
@ -135,7 +135,7 @@ int Curl_base64_encode(const void *inp, int insize, char **outptr)
|
|||||||
|
|
||||||
while(insize > 0) {
|
while(insize > 0) {
|
||||||
for (i = inputparts = 0; i < 3; i++) {
|
for (i = inputparts = 0; i < 3; i++) {
|
||||||
if(*indata) {
|
if(insize > 0) {
|
||||||
inputparts++;
|
inputparts++;
|
||||||
ibuf[i] = *indata;
|
ibuf[i] = *indata;
|
||||||
indata++;
|
indata++;
|
||||||
|
Loading…
Reference in New Issue
Block a user