]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Fix compiler warning: integral size mismatch in argument
authorYang Tse <yangsita@gmail.com>
Thu, 8 Nov 2007 19:28:25 +0000 (19:28 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 8 Nov 2007 19:28:25 +0000 (19:28 +0000)
lib/url.c

index 675ef0e06da0ba23f2889cf04be363cff732a25d..93d3bad3409304b212107de01ed4b07a937b9424 100644 (file)
--- 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;
         }