Skip to content

Commit

Permalink
fix(ble): Ensure large enough string for setting name.
Browse files Browse the repository at this point in the history
* Fix warning related to potentially large number of profiles
  causing overflow of allocated string for the setting name.
  • Loading branch information
petejohanson committed Feb 9, 2024
1 parent 58413ca commit b6d9f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b6d9f3c

Please sign in to comment.