diff options
author | Vincent Richard <[email protected]> | 2014-12-03 19:09:46 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-12-03 19:09:46 +0000 |
commit | 07ae82f17ad19bdc289013bc4bcd0528a87ed571 (patch) | |
tree | 6bd2a02e71ccf57dca5a2b038636704e20a47de4 | |
parent | Don't throw in destructor. (diff) | |
download | vmime-07ae82f17ad19bdc289013bc4bcd0528a87ed571.tar.gz vmime-07ae82f17ad19bdc289013bc4bcd0528a87ed571.zip |
Fixed buffer pointer offset when copying data.
-rw-r--r-- | src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp index 15e24cf1..f6ecc54d 100644 --- a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp +++ b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp @@ -123,7 +123,7 @@ void SMTPChunkingOutputStreamAdapter::writeImpl const size_t remaining = sizeof(m_buffer) - m_bufferSize; 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; curData += bytesToCopy; |