Update message.cc

This commit is contained in:
xiehan
2021-08-27 19:37:21 +08:00
committed by GitHub
parent b995150a74
commit 3c9405875f

View File

@@ -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;