Respect the pos parameter in WriteBuffer::replaceRawData

This omission didn't actually break anything, because `pos` is always
0.
This commit is contained in:
Ryan Prichard 2016-10-19 23:05:37 -05:00
parent 68c0c140b2
commit 91fce49ab1

View File

@ -45,7 +45,7 @@ void WriteBuffer::putRawData(const void *data, size_t len) {
void WriteBuffer::replaceRawData(size_t pos, const void *data, size_t len) {
ASSERT(pos <= m_buf.size() && len <= m_buf.size() - pos);
const auto p = reinterpret_cast<const char*>(data);
std::copy(p, p + len, m_buf.begin());
std::copy(p, p + len, &m_buf[pos]);
}
void WriteBuffer::putInt32(int32_t i) {