From b6719ab469b16022edd830cb90bc476b17fa6743 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 6 Jan 2020 13:42:52 +0100 Subject: [PATCH] c++: fix -Wclass-memaccess --- libtest/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.30.2