diff options
author | Yang Tse <yangsita@gmail.com> | 2012-03-22 02:40:19 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-03-22 04:54:04 +0100 |
commit | 3c80309c276b8ceac13ab1a4824d216805d45afe (patch) | |
tree | 663336bf7af75d2ccc6a36a4bcace3d22ae45e54 /lib/http_digest.c | |
parent | c83de6d07625b813e3bbc31f9a0827c3a0007355 (diff) | |
download | curl-3c80309c276b8ceac13ab1a4824d216805d45afe.tar.gz |
fix several compiler warnings
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r-- | lib/http_digest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c index b41e62306..45df5fc4d 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.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 @@ -34,6 +34,7 @@ #include "url.h" /* for Curl_safefree() */ #include "curl_memory.h" #include "non-ascii.h" /* included for Curl_convert_... prototypes */ +#include "warnless.h" #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> @@ -416,7 +417,8 @@ CURLcode Curl_output_digest(struct connectdata *conn, */ if(authp->iestyle && ((tmp = strchr((char *)uripath, '?')) != NULL)) { md5this = (unsigned char *)aprintf("%s:%.*s", request, - (int)(tmp - (char *)uripath), uripath); + curlx_sztosi(tmp - (char *)uripath), + uripath); } else md5this = (unsigned char *)aprintf("%s:%s", request, uripath); |