fix tutorial-10 message appending bug

This commit is contained in:
XieHan
2021-08-27 17:23:36 +08:00
parent b55e318a77
commit 688c7dd85d
@@ -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;