esp-idf/examples/provisioning/ble_prov/main
Mahavir Jain 04b8564249 provisioning: use memcpy instead of strncpy for copying SSID
Per WiFi library requirement, SSID can be non-null terminated string
if its length goes to 32 bytes (maximum). Use of strncpy in this case,
along with compiler optimization level -O2 results in some warnings
for potential use of non-null terminated strings.

Fix here ensures use of memcpy to copy SSID string upto appropriate
desired length. This helps to avoid compiler specific workaround
flags added earlier.

Closes https://github.com/espressif/esp-idf/issues/5866
Closes IDFGH-3983
2020-09-17 15:54:23 +05:30
..
app_main.c esp_netif, examples: esp_netif_init() moved into ESP_ERROR_CHECK() 2019-12-17 09:07:49 +01:00
app_prov_handlers.c provisioning: use memcpy instead of strncpy for copying SSID 2020-09-17 15:54:23 +05:30
app_prov.c legacy provisioning: Always try to reconnect when disconnected 2020-07-03 09:02:04 +00:00
app_prov.h esp_wifi: wifi support new event mechanism 2019-08-20 09:39:51 +00:00
CMakeLists.txt examples: use new component registration api 2019-06-21 19:53:29 +08:00
component.mk Examples : Added provisioning examples, tests and client tool. 2018-10-02 19:07:28 +05:30
Kconfig.projbuild Rename Kconfig options (examples) 2019-05-21 09:32:55 +02:00