From 299ea8d4089b5a8288932887d03c981c77244452 Mon Sep 17 00:00:00 2001 From: an-tao Date: Sun, 6 Jan 2019 12:26:34 +0800 Subject: [PATCH] Fix a compiler bug in CentOS --- lib/src/HttpResponseImpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/HttpResponseImpl.cc b/lib/src/HttpResponseImpl.cc index 17391de4..bb42c869 100755 --- a/lib/src/HttpResponseImpl.cc +++ b/lib/src/HttpResponseImpl.cc @@ -376,7 +376,7 @@ std::shared_ptr HttpResponseImpl::renderToString() const { std::lock_guard lock(*_httpStringMutex); _httpString = std::make_shared(*_httpString); - memcpy(_httpString->data() + _datePos, newDate, strlen(newDate)); + memcpy((void *)(_httpString->data() + _datePos), newDate, strlen(newDate)); return _httpString; } }