diff --git a/src/aws-cpp-sdk-core/source/utils/stream/ConcurrentStreamBuf.cpp b/src/aws-cpp-sdk-core/source/utils/stream/ConcurrentStreamBuf.cpp index 82c87dc9ae4..7f9aaa8771b 100644 --- a/src/aws-cpp-sdk-core/source/utils/stream/ConcurrentStreamBuf.cpp +++ b/src/aws-cpp-sdk-core/source/utils/stream/ConcurrentStreamBuf.cpp @@ -184,7 +184,7 @@ namespace Aws return std::char_traits::eof(); } - char* gbegin = reinterpret_cast(&m_getArea[0]); + char* gbegin = reinterpret_cast(m_getArea.data()); setg(gbegin, gbegin, gbegin + m_getArea.size()); if (!m_getArea.empty())