Skip to content

Commit

Permalink
fix tutorial-10 message appending bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Aug 27, 2021
1 parent b55e318 commit 688c7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/tutorial-10-user_defined_protocol/message.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int TutorialMessage::append(const void *buf, size_t size)
return -1;
}

memcpy(this->body, buf, body_left);
memcpy(this->body, buf, size);
if (size < body_left)
return 0;

Expand Down

0 comments on commit 688c7dd

Please sign in to comment.