X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fhttp.cc;h=465ce6186708c9d3c5eeb78fb0703343e4d7e056;hb=b6719ab469b16022edd830cb90bc476b17fa6743;hp=c6caa09f297bfc9dba8ad9f99f5ee2615ad514cb;hpb=92386115b06c66e4aa33850f20df8f88c174e58f;p=awesomized%2Flibmemcached diff --git a/libtest/http.cc b/libtest/http.cc index c6caa09f..465ce618 100644 --- a/libtest/http.cc +++ b/libtest/http.cc @@ -87,7 +87,7 @@ static size_t http_get_result_callback(void *ptr, size_t size, size_t nmemb, voi 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(); } @@ -194,7 +194,7 @@ bool HEAD::execute() #if defined(HAVE_LIBCURL) && HAVE_LIBCURL if (HAVE_LIBCURL) { - CURL *curl= curl_easy_init();; + CURL *curl= curl_easy_init(); init(curl, url());