diff --git a/subsys/bluetooth/host/hci_core.h b/subsys/bluetooth/host/hci_core.h index d97562ea813..4aa14c6e67a 100644 --- a/subsys/bluetooth/host/hci_core.h +++ b/subsys/bluetooth/host/hci_core.h @@ -172,7 +172,7 @@ struct bt_dev { /* Local Name */ #if defined(CONFIG_BT_DEVICE_NAME_DYNAMIC) - char name[CONFIG_BT_DEVICE_NAME_MAX]; + char name[CONFIG_BT_DEVICE_NAME_MAX + 1]; #endif };