diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c index ff00717a92..e92393d3c8 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c @@ -1807,6 +1807,7 @@ int bcmf_wl_get_country(FAR struct bcmf_dev_s *priv, FAR struct iwreq *iwr) if (ret == OK) { memcpy(iwr->u.data.pointer, country, 2); + ((uint8_t *)iwr->u.data.pointer)[2] = '\0'; } return ret;