mirror of
https://github.com/curl/curl.git
synced 2026-05-30 15:17:27 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue