mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-12 17:57:12 +08:00

Error: httpd.c:671:7: error: 'strncpy' output truncated before terminating nul copying 12 bytes from a string of the same length [-Werror=stringop-truncation] 671 | strncpy(pstate->ht_filename, "/" CONFIG_NETUTILS_HTTPD_INDEX, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 672 | strlen("/" CONFIG_NETUTILS_HTTPD_INDEX)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>