Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c819b854 authored by liuchao's avatar liuchao
Browse files

Fix strlcpy length passing in bta hl

In struture tBTA_HL_API_UPDATE & tBTA_HL_API_REGISTER both
have XXX_LEN + 1 in the arry defination. When passing XXX_LEN,
strlcpy will max copy XXX_LEN - 1 and when the real string len
reach the XXX_LEN , the last char will be unexpected filled
with /0

Test: build & unittest
Change-Id: Ib6ccb9c40196ca84ee9e10556820e36a6dde0d35
parent 37df554a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment