]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vtls.c: Fixed compilation warning
authorSteve Holme <steve_holme@hotmail.com>
Wed, 29 Oct 2014 19:12:50 +0000 (19:12 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 29 Oct 2014 19:12:27 +0000 (19:12 +0000)
conversion from 'size_t' to 'unsigned int', possible loss of data

lib/vtls/vtls.c

index b01cbe7bcc0f314a22d779f6790d5bc3cc761e7e..1d1c62eba8a6677f2235c5ec3b88864476159d13 100644 (file)
@@ -68,6 +68,7 @@
 #include "share.h"
 #include "timeval.h"
 #include "curl_md5.h"
+#include "warnless.h"
 
 #define _MPRINTF_REPLACE /* use our functions only */
 #include <curl/mprintf.h>
@@ -749,8 +750,9 @@ void Curl_ssl_md5sum(unsigned char *tmp, /* input */
   MD5_context *MD5pw;
 
   (void) md5len;
+
   MD5pw = Curl_MD5_init(Curl_DIGEST_MD5);
-  Curl_MD5_update(MD5pw, tmp, tmplen);
+  Curl_MD5_update(MD5pw, tmp, curlx_uztoui(tmplen));
   Curl_MD5_final(MD5pw, md5sum);
 #endif
 }