Skip to content

Commit

Permalink
fix(core): incorrect buffer allocation for data message callback
Browse files Browse the repository at this point in the history
  • Loading branch information
GwnDaan committed Jan 15, 2024
1 parent 603c736 commit 6ffb6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isobus/src/can_message_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace isobus
parentPointer(parentPointer),
bufferSize(chunkSize)
{
buffer.reserve(bufferSize);
buffer.resize(bufferSize);
}

std::size_t CANMessageDataCallback::size() const
Expand Down

0 comments on commit 6ffb6c0

Please sign in to comment.