From a78a36e7b939c735c4de016504fecb994713a6d9 Mon Sep 17 00:00:00 2001 From: Isha Pardikar Date: Mon, 26 Sep 2022 15:04:57 +0530 Subject: [PATCH] wifi_provisioning : Increased 1 byte of BLE advertising device name to store '\0', at the end, to ensure we adhere to the max name length as per spec. --- components/protocomm/include/transports/protocomm_ble.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/protocomm/include/transports/protocomm_ble.h b/components/protocomm/include/transports/protocomm_ble.h index d684e7e921..0efb31c213 100644 --- a/components/protocomm/include/transports/protocomm_ble.h +++ b/components/protocomm/include/transports/protocomm_ble.h @@ -52,7 +52,7 @@ typedef struct protocomm_ble_config { /** * BLE device name being broadcast at the time of provisioning */ - char device_name[MAX_BLE_DEVNAME_LEN]; + char device_name[MAX_BLE_DEVNAME_LEN + 1]; /** * 128 bit UUID of the provisioning service