Skip to content

Commit

Permalink
fix bug on buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
LomotHo committed Dec 13, 2021
1 parent ff924a5 commit 8333a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Buffer {
}
bool write(const char* buf, size_t len) {
if (manualWrite(len)) {
::memcpy(end(), buf, len);
::memcpy(end() - len, buf, len);
return true;
} else {
return false;
Expand Down

0 comments on commit 8333a6c

Please sign in to comment.