From b948ba030ca3b49a79b1e77a87229438209e422c Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 2 Mar 2017 22:33:38 +0100 Subject: Reserve new space to data_ can_message_t member only if the new incoming can frame if bigger than the old one. Change-Id: I39634cc0d01b300ea471b358e13d704b8eff351c Signed-off-by: Romain Forlot --- src/can-message.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/can-message.cpp b/src/can-message.cpp index 5a3e2c2..63f8a90 100644 --- a/src/can-message.cpp +++ b/src/can-message.cpp @@ -182,7 +182,8 @@ void can_message_t::convert_from_canfd_frame(const std::pair