The base64 encode function now takes a size_t for size, not an int as
previously.
This commit is contained in:
Родитель
ae76a67566
Коммит
1aba4c519b
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче