mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Fix bcmf_netdev.c:705:7: error: 'strnlen' specified bound 2 exceeds source size 1 [-Werror=stringop-overread]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
819ebe7356
commit
85deafd7bf
@@ -702,7 +702,7 @@ static int bcmf_ifup(FAR struct net_driver_s *dev)
|
|||||||
goto errout_in_wl_active;
|
goto errout_in_wl_active;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strnlen(CONFIG_IEEE80211_BROADCOM_DEFAULT_COUNTRY, 2) == 2)
|
if (CONFIG_IEEE80211_BROADCOM_DEFAULT_COUNTRY[0])
|
||||||
{
|
{
|
||||||
bcmf_wl_set_country_code(priv, CHIP_STA_INTERFACE,
|
bcmf_wl_set_country_code(priv, CHIP_STA_INTERFACE,
|
||||||
CONFIG_IEEE80211_BROADCOM_DEFAULT_COUNTRY);
|
CONFIG_IEEE80211_BROADCOM_DEFAULT_COUNTRY);
|
||||||
|
|||||||
Reference in New Issue
Block a user