Skip to content

Commit 9ebc66f

Browse files
committed
Fix BufferPrint adapter
1 parent 30ff1ce commit 9ebc66f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DynamicBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class BufferPrint : public Print {
249249

250250
size_t write(const uint8_t *buffer, size_t size) {
251251
size = std::min(size, _buf.size() - offset);
252-
memcpy(_buf.data(), buffer, size);
252+
memcpy(_buf.data() + offset, buffer, size);
253253
offset += size;
254254
return size;
255255
}

0 commit comments

Comments
 (0)