aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-02-13 18:30:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-02-13 18:30:10 +0000
commit3ddc7b939028cbb391f093bd14a49030ada5182e (patch)
treee6fe98a8478c6772b0eff0cc7f82cfd5080a3719
parent10e9bf623f29ea27ddc73e030e63f859b7156289 (diff)
Christopher R. Palmer fixed Curl_base64_encode() to deal with zeroes in the
data to encode.
-rw-r--r--lib/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base64.c b/lib/base64.c
index 9706c74fb..0f461eabd 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -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++;