Fixed buffer pointer offset when copying data.
This commit is contained in:
parent
31df6171de
commit
07ae82f17a
@ -123,7 +123,7 @@ void SMTPChunkingOutputStreamAdapter::writeImpl
|
|||||||
const size_t remaining = sizeof(m_buffer) - m_bufferSize;
|
const size_t remaining = sizeof(m_buffer) - m_bufferSize;
|
||||||
const size_t bytesToCopy = std::min(remaining, curCount);
|
const size_t bytesToCopy = std::min(remaining, curCount);
|
||||||
|
|
||||||
std::copy(data, data + bytesToCopy, m_buffer + m_bufferSize);
|
std::copy(curData, curData + bytesToCopy, m_buffer + m_bufferSize);
|
||||||
|
|
||||||
m_bufferSize += bytesToCopy;
|
m_bufferSize += bytesToCopy;
|
||||||
curData += bytesToCopy;
|
curData += bytesToCopy;
|
||||||
|
Loading…
Reference in New Issue
Block a user