cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] mErrorBuffer contains garbage in some cases

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 29 Aug 2005 15:03:03 +0200 (CEST)

On Mon, 29 Aug 2005, Jean-Philippe Barrette-LaPierre wrote:

> I just found what was the problem. I forgot to fill the mErrorBuffer with
> zeros. I think that CURL_URL_MALFORMAT don't set an error message, so that's
> why the buffer was invalid.

libcurl should probably write an error string for that case too...

> Yeah, I think I'll clear the buffer each time (if libcURL don't do it
> already).

No need to fill it really, it'll be enough if you set the first byte to zero.

-- 
          -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-08-29

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET