Fix a compiler bug in CentOS

This commit is contained in:
an-tao 2019-01-06 12:26:34 +08:00
parent 2f123c3dc8
commit 299ea8d408
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ std::shared_ptr<std::string> HttpResponseImpl::renderToString() const
{
std::lock_guard<std::mutex> lock(*_httpStringMutex);
_httpString = std::make_shared<std::string>(*_httpString);
memcpy(_httpString->data() + _datePos, newDate, strlen(newDate));
memcpy((void *)(_httpString->data() + _datePos), newDate, strlen(newDate));
return _httpString;
}
}