From: Romain Forlot Date: Thu, 2 Mar 2017 21:33:38 +0000 (+0100) Subject: Reserve new space to data_ can_message_t member only if the X-Git-Tag: 5.0.2~583 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=b948ba030ca3b49a79b1e77a87229438209e422c;hp=17710741242f40c91edb28f29d6e5ef943a4c41b;p=apps%2Fagl-service-can-low-level.git 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 --- diff --git a/src/can-message.cpp b/src/can-message.cpp index 5a3e2c27..63f8a909 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