commit | 2b275704bc174199687d11bd5b6ed6e1f0dcaaea | [log] [tgz] |
---|---|---|
author | Kevin Rocard <krocard@google.com> | Tue Feb 27 10:56:32 2018 -0800 |
committer | Kevin Rocard <krocard@google.com> | Tue Mar 06 11:30:51 2018 -0800 |
tree | d7b181cf93f74ec3e8ee8fbe60c767dfdea68e27 | |
parent | f0878685d797d107417b2758c1ea39284609cebb [diff] |
Fix potential missing '\0' when wrapping to legacy The HAL API for port name is a C++ string of arbitrary length. Nevertheless the legacy API name had a maximum length. Thus when wrapping from the new to legacy, the string was truncated but no '\0' was added. Bug: 38184704 Test: compile Change-Id: I482363809718281e022041c2d5042e5800c5a617 Merged-In: I482363809718281e022041c2d5042e5800c5a617 Cherry-picked from master Signed-off-by: Kevin Rocard <krocard@google.com>