cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problem with CallBack function and HTTPS

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 22 May 2012 13:36:08 +0200 (CEST)

On Tue, 22 May 2012, Lennart Martens wrote:

First: you're using libcurl, curl-library is the mailing list for that!

> size_t HandleImpl(char* data, size_t size, size_t nmemb)
> {
> char* sizeData = data + std::strlen(data);

It looks like your code assumes zero terminated data to arrive, which isn't
something libcurl guarantees...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-22