esp-idf/examples/provisioning/legacy
Mahavir Jain 6a3d50c952 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 12:59:22 +05:30
..
ble_prov provisioning: use memcpy instead of strncpy for copying SSID 2020-09-17 12:59:22 +05:30
console_prov provisioning: use memcpy instead of strncpy for copying SSID 2020-09-17 12:59:22 +05:30
custom_config provisioning: use memcpy instead of strncpy for copying SSID 2020-09-17 12:59:22 +05:30
softap_prov provisioning: use memcpy instead of strncpy for copying SSID 2020-09-17 12:59:22 +05:30