Proper BT custom name length handling

This commit is contained in:
Willy-JL
2023-04-08 00:54:02 +01:00
parent 525376df9e
commit 8aed004b7b
7 changed files with 11 additions and 11 deletions

View File

@@ -402,7 +402,7 @@ void bt_set_profile_adv_name(Bt* bt, const char* fmt, ...) {
furi_assert(bt);
furi_assert(fmt);
char name[FURI_HAL_VERSION_DEVICE_NAME_LENGTH];
char name[FURI_HAL_BT_ADV_NAME_LENGTH];
va_list args;
va_start(args, fmt);
vsnprintf(name, sizeof(name), fmt, args);