diff --git a/isobus/src/can_message_data.cpp b/isobus/src/can_message_data.cpp index fd411ee5..abb10ddc 100644 --- a/isobus/src/can_message_data.cpp +++ b/isobus/src/can_message_data.cpp @@ -89,7 +89,7 @@ namespace isobus parentPointer(parentPointer), bufferSize(chunkSize) { - buffer.reserve(bufferSize); + buffer.resize(bufferSize); } std::size_t CANMessageDataCallback::size() const