aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-05 12:42:35 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-05 12:42:35 +0000
commite8cea8d70fed7ad5e14d8b3e871ebf0ea0bf53b0 (patch)
treeb93faab60aa0c1fca422e945f3a6f574abaf2cf0
parentefe4bab29ba9539816cf1ba660d24d00f35e9b28 (diff)
url.c: Fixed compilation warning
conversion from 'curl_off_t' to 'size_t', possible loss of data
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 40d4fed59..3a877fc87 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -368,7 +368,8 @@ CURLcode Curl_dupset(struct SessionHandle *dst, struct SessionHandle *src)
i = STRING_COPYPOSTFIELDS;
if(src->set.postfieldsize && src->set.str[i]) {
/* postfieldsize is curl_off_t, Curl_memdup() takes a size_t ... */
- dst->set.str[i] = Curl_memdup(src->set.str[i], src->set.postfieldsize);
+ dst->set.str[i] = Curl_memdup(src->set.str[i],
+ curlx_sotouz(src->set.postfieldsize));
if(!dst->set.str[i])
return CURLE_OUT_OF_MEMORY;
/* point to the new copy */