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:
parent
58413ca8c5
commit
b6d9f3c911
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
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];
|
char addr_str[BT_ADDR_LE_STR_LEN];
|
||||||
|
|
||||||
bt_addr_le_to_str(addr, addr_str, sizeof(addr_str));
|
bt_addr_le_to_str(addr, addr_str, sizeof(addr_str));
|
||||||
|
|
Loading…
Add table
Reference in a new issue