summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-03-20 18:28:24 +0100
committerYang Tse <yangsita@gmail.com>2012-03-20 18:28:24 +0100
commitc6825b7a6b5e8798bc861b3d280430e8149e7298 (patch)
tree7647999b7351ab4330f2218622fcfbc1469cb975 /lib/md5.c
parente6a89cb6c4f0ed51a41425cf78a56394f397c5e5 (diff)
downloadcurl-c6825b7a6b5e8798bc861b3d280430e8149e7298.tar.gz
fix several compiler warnings
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/md5.c b/lib/md5.c
index cf8e053e3..13cb9e294 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -26,6 +26,7 @@
#include "curl_md5.h"
#include "curl_hmac.h"
+#include "warnless.h"
#ifdef USE_GNUTLS_NETTLE
@@ -412,7 +413,7 @@ void Curl_md5it(unsigned char *outbuffer, /* 16 bytes */
{
MD5_CTX ctx;
MD5_Init(&ctx);
- MD5_Update(&ctx, input, (unsigned int)strlen((char *)input));
+ MD5_Update(&ctx, input, curlx_uztoui(strlen((char *)input)));
MD5_Final(outbuffer, &ctx);
}