Commit e87c996f authored by Yang Tse's avatar Yang Tse
Browse files

Fix compiler warning: integral size mismatch in argument

parent 32195c67
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1059,7 +1059,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
          result = CURLE_OUT_OF_MEMORY;
          result = CURLE_OUT_OF_MEMORY;
        else {
        else {
          if(data->set.postfieldsize)
          if(data->set.postfieldsize)
            memcpy(p, argptr, data->set.postfieldsize);
            memcpy(p, argptr, (size_t)data->set.postfieldsize);


          data->set.str[STRING_COPYPOSTFIELDS] = p;
          data->set.str[STRING_COPYPOSTFIELDS] = p;
        }
        }