cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: out of memory error while posting form data

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 30 Jul 2008 10:32:51 -0700

On Wed, Jul 30, 2008 at 08:55:56AM -0700, deva seetharam wrote:
> --- On Tue, 7/29/08, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> > dataSize is an unsigned int, not a long like it should be.
> > On 32-bit x86
> > Linux they're the same length, but on x86-64,
> > they're not. That's probably
> > the problem right there.
> it was the problem. fixed it. thank you!
>
> but, i am curious to know why would that be an issue at all. anyways i am up converting - i am using an unsigned int (usually the value is around 1000) in place of an unsigned long.
>
> pls. let me know.

curl_formadd is a variadic function, so it's impossible for the compiler to
do coercion on the supplied unsigned int into a long.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-30