From: Yang Tse Date: Thu, 8 Nov 2007 19:28:25 +0000 (+0000) Subject: Fix compiler warning: integral size mismatch in argument X-Git-Tag: curl-7_18_0~291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e87c996fe04ea16468af0fa13d89034b15fd36de;p=thirdparty%2Fcurl.git Fix compiler warning: integral size mismatch in argument --- diff --git a/lib/url.c b/lib/url.c index 675ef0e06d..93d3bad340 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1059,7 +1059,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, result = CURLE_OUT_OF_MEMORY; else { if(data->set.postfieldsize) - memcpy(p, argptr, data->set.postfieldsize); + memcpy(p, argptr, (size_t)data->set.postfieldsize); data->set.str[STRING_COPYPOSTFIELDS] = p; }