Skip to content

Commit

Permalink
vtls.c: Fixed compilation warning
Browse files Browse the repository at this point in the history
conversion from 'size_t' to 'unsigned int', possible loss of data
  • Loading branch information
captain-caveman2k committed Oct 29, 2014
1 parent f3fc3d0 commit 3291318
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/vtls/vtls.c
Expand Up @@ -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>
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 3291318

Please sign in to comment.