diff options
author | Yang Tse <yangsita@gmail.com> | 2012-03-20 18:28:24 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-03-20 18:28:24 +0100 |
commit | c6825b7a6b5e8798bc861b3d280430e8149e7298 (patch) | |
tree | 7647999b7351ab4330f2218622fcfbc1469cb975 /lib/md5.c | |
parent | e6a89cb6c4f0ed51a41425cf78a56394f397c5e5 (diff) | |
download | curl-c6825b7a6b5e8798bc861b3d280430e8149e7298.tar.gz |
fix several compiler warnings
Diffstat (limited to 'lib/md5.c')
-rw-r--r-- | lib/md5.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |