fix(ble): Ensure large enough string for setting name.

* Fix warning related to potentially large number of profiles
  causing overflow of allocated string for the setting name.
This commit is contained in:
Peter Johanson 2023-11-09 23:58:28 +00:00 committed by Pete Johanson
parent 58413ca8c5
commit b6d9f3c911

View File

@ -98,7 +98,7 @@ bool zmk_ble_active_profile_is_open(void) {
}
void set_profile_address(uint8_t index, const bt_addr_le_t *addr) {
char setting_name[15];
char setting_name[17];
char addr_str[BT_ADDR_LE_STR_LEN];
bt_addr_le_to_str(addr, addr_str, sizeof(addr_str));