From: Michael Wallner Date: Mon, 6 Jan 2020 12:42:52 +0000 (+0100) Subject: c++: fix -Wclass-memaccess X-Git-Tag: pre_cmake~85 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b6719ab469b16022edd830cb90bc476b17fa6743;p=awesomized%2Flibmemcached c++: fix -Wclass-memaccess --- diff --git a/libtest/http.cc b/libtest/http.cc index 29873dc6..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(); }