strlen() returns size_t
This commit is contained in:
parent
7e6043f04f
commit
72a4715dff
@ -213,7 +213,7 @@ static void mkhash(char *password,
|
|||||||
0x4B, 0x47, 0x53, 0x21, 0x40, 0x23, 0x24, 0x25
|
0x4B, 0x47, 0x53, 0x21, 0x40, 0x23, 0x24, 0x25
|
||||||
};
|
};
|
||||||
int i;
|
int i;
|
||||||
int len = strlen(password);
|
size_t len = strlen(password);
|
||||||
|
|
||||||
/* make it fit at least 14 bytes */
|
/* make it fit at least 14 bytes */
|
||||||
pw = malloc(len<7?14:len*2);
|
pw = malloc(len<7?14:len*2);
|
||||||
@ -282,8 +282,8 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
|
|||||||
{
|
{
|
||||||
const char *domain=""; /* empty */
|
const char *domain=""; /* empty */
|
||||||
const char *host=""; /* empty */
|
const char *host=""; /* empty */
|
||||||
int domlen=strlen(domain);
|
int domlen=(int)strlen(domain);
|
||||||
int hostlen = strlen(host);
|
int hostlen = (int)strlen(host);
|
||||||
int hostoff; /* host name offset */
|
int hostoff; /* host name offset */
|
||||||
int domoff; /* domain name offset */
|
int domoff; /* domain name offset */
|
||||||
size_t size;
|
size_t size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user