diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 08:07:55 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 08:07:55 +0000 |
commit | 1aba4c519b5389c2930075d4f555a003904a0431 (patch) | |
tree | b918a3697d5cbf83ef9dd98b0f326582fad78997 /lib | |
parent | ae76a675660a48d462922ff5cb7e2001f6d4cff6 (diff) |
The base64 encode function now takes a size_t for size, not an int as
previously.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base64.c | 4 | ||||
-rw-r--r-- | lib/base64.h | 2 | ||||
-rw-r--r-- | lib/http_ntlm.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/base64.c b/lib/base64.c index a1f5d8934..fb8e91d92 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -115,7 +115,7 @@ static char table64[]= * went wrong, -1 is returned. * */ -int Curl_base64_encode(const void *inp, int insize, char **outptr) +int Curl_base64_encode(const void *inp, size_t insize, char **outptr) { unsigned char ibuf[3]; unsigned char obuf[4]; @@ -202,7 +202,7 @@ void *suck(int *); int main(int argc, char **argv, char **envp) { char *base64; - int base64Len; + size_t base64Len; unsigned char *data; int dataLen; diff --git a/lib/base64.h b/lib/base64.h index c4d321e17..767637e3d 100644 --- a/lib/base64.h +++ b/lib/base64.h @@ -22,6 +22,6 @@ * * $Id$ ***************************************************************************/ -int Curl_base64_encode(const void *data, int size, char **str); +int Curl_base64_encode(const void *data, size_t size, char **str); int Curl_base64_decode(const char *str, void *data); #endif diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index 5a6fba790..44fe01397 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -286,7 +286,7 @@ CURLcode Curl_output_ntlm(struct connectdata *conn, int hostlen = strlen(host); int hostoff; /* host name offset */ int domoff; /* domain name offset */ - int size; + size_t size; char *base64=NULL; unsigned char ntlmbuf[256]; /* enough, unless the host/domain is very long */ |