OSDN Git Service

Refactor: Fix BT device name length issue
authorxiaoshun.xu <Xiaoshun.Xu@mediatek.com>
Tue, 18 Aug 2020 17:57:09 +0000 (01:57 +0800)
committerMyles Watson <mylesgw@google.com>
Fri, 21 Aug 2020 23:21:34 +0000 (23:21 +0000)
commit624c787a77d189ab0fa3a992a9a6895a2255d5d1
tree113194fc1f16ce10e95dbc60ab4ecd6f2987cae4
parentb5fc1d92bb2047ccc8a450bb911ef0b7c2e9a18f
Refactor: Fix BT device name length issue

BT device name only show 247bytes on settings, it supposed to show
248bytes if local device and remote device have 248bytes' name.
Increasing the argument passed to function strlcpy&memcpy bt 1
will resolve the issue.

Tag: #refactor
Bug: 162480697
Sponsor: mylesgw
Test: cert/run --host
Change-Id: Ib3fa7d78e39f0a9330658f9ce2b4a67003d7114d
bta/dm/bta_dm_act.cc
bta/dm/bta_dm_api.cc
btif/src/btif_dm.cc
stack/btm/btm_ble.cc
stack/btm/btm_dev.cc
stack/btm/btm_devctl.cc
stack/btm/btm_sec.cc