failure condition: http://curl.haxx.se/mail/lib-2007-10/0152.html
* Check that request length does not overflow the size_t type.
*/
- if ((data->set.postfieldsize < 0) ||
- (data->set.postfieldsize > (curl_off_t)((size_t)-1)))
+ if ((sizeof(curl_off_t) != sizeof(size_t)) &&
+ ((data->set.postfieldsize < 0) ||
+ (data->set.postfieldsize > (curl_off_t)((size_t)-1))))
result = CURLE_OUT_OF_MEMORY;
else {
char * p;