Skip to content
Snippets Groups Projects
Commit 3ddc7b93 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

data to encode.
parent 10e9bf62
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment