Skip to content

Commit

Permalink
Merge branch 'v0.20'
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Mar 8, 2024
2 parents 8c8aa31 + 37719d1 commit 1bb2ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ message_ptr make_message(size_t size, message_ptr orig) {
return nullptr;

auto message = std::make_shared<Message>(size, orig->type);
std::copy(orig->begin(), std::min(orig->end(), orig->begin() + size), message->begin());
std::copy(orig->begin(), orig->begin() + std::min(size, orig->size()), message->begin());
message->stream = orig->stream;
message->reliability = orig->reliability;
return message;
Expand Down

0 comments on commit 1bb2ee4

Please sign in to comment.