cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Bulk] Re: Why syntax error in release version of code in visual c++

From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Thu, 6 Feb 2014 14:37:50 +0100

"ansh kumar" <anshgravity_at_gmail.com> wrote:

> Okay I've removed \0 from the buffer size.
> 1) I want to know why I'm getting following error if I use
> CURLOPT_INFILESIZE_LARGE option instead of CURLOPT_INFILESIZE :
>
>> MAIL FROM:<xxxx_at_gmail.com> SIZE=141949047089924518

Did you cast the CURLOPT_INFILESIZE_LARGE argument (the file_size)
to 64-bit? And are you sure curl_off_t is 64-bit on your platform?

You can do:
 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (unsigned long long)file_size);

to make sure the arg on the stack is correct.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-06