]> granicus.if.org Git - curl/commitdiff
ntlm: explicit type casting
authorlufia <lufia@lufia.org>
Tue, 26 Mar 2019 13:23:28 +0000 (22:23 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 30 Jul 2019 22:22:16 +0000 (00:22 +0200)
lib/curl_ntlm_core.c

index 9e6fdcab2e97903704e2f8ab12997071dadc9d75..ce6f22392ac6c08927e5aeaf6b5a52ce8b1cda1f 100644 (file)
@@ -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;