cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: ansh kumar <anshgravity_at_gmail.com>
Date: Thu, 6 Feb 2014 19:18:38 +0530

You are right, I didn't cast the file_size.

On Thu, Feb 6, 2014 at 7:07 PM, Gisle Vanem <gvanem_at_yahoo.no> wrote:

> "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
>

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