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
Loading
Please register or sign in to comment