aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-03-23 12:46:54 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-05-22 21:01:51 +0100
commita7999da39e2788b086f5302f81128a9ad26c274b (patch)
tree6f2f5737571b13e87ced1dede1ea77b2b4649d15 /src
parent415c982afb0b5348b1e994c2e723e43ac4d6ad84 (diff)
tool_getparam.c: Fixed compilation warnings
There is an implicit conversion from "unsigned long" to "long"
Diffstat (limited to 'src')
-rw-r--r--src/tool_getparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 6d68c5b40..9ac6ab2fc 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -1239,7 +1239,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
&-letter */
char *oldpost = config->postfields;
curl_off_t oldlen = config->postfieldsize;
- curl_off_t newlen = oldlen + size + 2;
+ curl_off_t newlen = oldlen + curlx_uztoso(size) + 2;
config->postfields = malloc((size_t)newlen);
if(!config->postfields) {
Curl_safefree(oldpost);
@@ -1257,7 +1257,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
}
else {
config->postfields = postdata;
- config->postfieldsize = size;
+ config->postfieldsize = curlx_uztoso(size);
}
}
/*