Browse Source

ntlm: explicit type casting

lufia 5 years ago
parent
commit
6cd5c35509
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/curl_ntlm_core.c

+ 1 - 1
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;