esp-mesh-lite icon indicating copy to clipboard operation
esp-mesh-lite copied to clipboard

mesh_lite upgrade v1.0.0 wifi_prov_mgr compilation exception (AEGHB-778)

Open yel-best opened this issue 6 months ago • 5 comments

Hi

use mesh_lite v1.0.0 version

image

After compiling, the following error will appear. What is the reason? After upgrading, an error is reported. I originally used v0.10.3 to upgrade to v1.0.0 version, through the configuration file:

espressif/mesh_lite: ">=1.0.0"

The latest mesh_lite version of components.espressif.com is only v1.0.0. When will v1.0.1 be updated?

E:/MyProject/IoT/PlatformIO-ESP/esp-data-collect/mesh-lite-terminal/managed_components/espressif__mesh_lite/src/wifi_prov/wifi_prov_mgr.c:203:17: error: 'strncpy' output may be truncated copying 32 bytes from a string of length 39 [-Werror=stringop-truncation]
  203 |                 strncpy((char*)wifi_prov_mgr_mesh_lite_cfg.ssid, softap_ssid, sizeof(wifi_prov_mgr_mesh_lite_cfg.ssid));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:/MyProject/IoT/PlatformIO-ESP/esp-data-collect/mesh-lite-terminal/managed_components/espressif__mesh_lite/src/wifi_prov/wifi_prov_mgr.c:196:17: error: 'strncpy' output may be truncated copying 32 bytes from a string of length 39 [-Werror=stringop-truncation]
  196 |                 strncpy((char*)wifi_prov_mgr_mesh_lite_cfg.ssid, softap_ssid, sizeof(wifi_prov_mgr_mesh_lite_cfg.ssid));

image

yel-best avatar Aug 12 '24 09:08 yel-best