mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
6a3d50c952
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
23 lines
706 B
CMake
23 lines
706 B
CMake
set(srcs "src/wifi_config.c"
|
|
"src/wifi_scan.c"
|
|
"src/manager.c"
|
|
"src/handlers.c"
|
|
"src/scheme_softap.c"
|
|
"src/scheme_console.c"
|
|
"proto-c/wifi_config.pb-c.c"
|
|
"proto-c/wifi_scan.pb-c.c"
|
|
"proto-c/wifi_constants.pb-c.c")
|
|
|
|
if(CONFIG_BT_ENABLED)
|
|
if(CONFIG_BT_BLUEDROID_ENABLED OR CONFIG_BT_NIMBLE_ENABLED)
|
|
list(APPEND srcs
|
|
"src/scheme_ble.c")
|
|
endif()
|
|
endif()
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
INCLUDE_DIRS include
|
|
PRIV_INCLUDE_DIRS src proto-c ../protocomm/proto-c
|
|
REQUIRES lwip protocomm
|
|
PRIV_REQUIRES protobuf-c bt mdns json esp_timer)
|