diff options
Diffstat (limited to 'libs/libcurl/src/http_digest.c')
-rw-r--r-- | libs/libcurl/src/http_digest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/libcurl/src/http_digest.c b/libs/libcurl/src/http_digest.c index 049b232e01..34bb5a8e08 100644 --- a/libs/libcurl/src/http_digest.c +++ b/libs/libcurl/src/http_digest.c @@ -146,7 +146,8 @@ CURLcode Curl_output_digest(struct Curl_easy *data, tmp = strchr((char *)uripath, '?'); if(tmp) { size_t urilen = tmp - (char *)uripath; - path = (unsigned char *) aprintf("%.*s", urilen, uripath); + /* typecast is fine here since the value is always less than 32 bits */ + path = (unsigned char *) aprintf("%.*s", (int)urilen, uripath); } } if(!tmp) |