aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlufia <lufia@lufia.org>2019-03-26 22:23:28 +0900
committerDaniel Stenberg <daniel@haxx.se>2019-07-31 00:22:16 +0200
commit6cd5c355092c9811acd5a4b339e5a453d23045e2 (patch)
treecbd683fea09905438babe787e234899b0795ccb7
parentd414f6bf0816454960530b225f829b47c429a674 (diff)
ntlm: explicit type casting
-rw-r--r--lib/curl_ntlm_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index 9e6fdcab2..ce6f22392 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -552,7 +552,7 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct Curl_easy *data,
CURLcode result;
if(len > SIZE_T_MAX/2) /* avoid integer overflow */
return CURLE_OUT_OF_MEMORY;
- pw = len ? malloc(len * 2) : strdup("");
+ pw = len ? malloc(len * 2) : (unsigned char *)strdup("");
if(!pw)
return CURLE_OUT_OF_MEMORY;