aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-08 12:36:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-08 12:36:54 +0000
commit72a4715dffde2b8c8e6a4392951f1b909c959568 (patch)
treef8b9456cc14b1f9e6a751652900056b35fcac05f
parent7e6043f04fbcb44a44b9cc46a00774011dd811ca (diff)
strlen() returns size_t
-rw-r--r--lib/http_ntlm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index faebb6582..7948e3749 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -213,7 +213,7 @@ static void mkhash(char *password,
0x4B, 0x47, 0x53, 0x21, 0x40, 0x23, 0x24, 0x25
};
int i;
- int len = strlen(password);
+ size_t len = strlen(password);
/* make it fit at least 14 bytes */
pw = malloc(len<7?14:len*2);
@@ -282,8 +282,8 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
{
const char *domain=""; /* empty */
const char *host=""; /* empty */
- int domlen=strlen(domain);
- int hostlen = strlen(host);
+ int domlen=(int)strlen(domain);
+ int hostlen = (int)strlen(host);
int hostoff; /* host name offset */
int domoff; /* domain name offset */
size_t size;