- Updated strncpy calls in wifi_cfg_apply_from_nvs and wifi_do_connect to prevent buffer overflows by reserving space for null termination. - Added explicit null termination for SSID and password fields in the wifi_config_t structure.