vchar_t *_body= (vchar_t*)data;
_body->resize(size * nmemb);
- memcpy(&_body[0], ptr, _body->size());
+ memcpy(&(*_body)[0], ptr, _body->size());
return _body->size();
}
#if defined(HAVE_LIBCURL) && HAVE_LIBCURL
if (HAVE_LIBCURL)
{
- CURL *curl= curl_easy_init();;
+ CURL *curl= curl_easy_init();
init(curl, url());