Re: [PATCH] brcmfmac: replace strncpy() by strscpy()

2019-08-23 Thread Arend Van Spriel
On 8/23/2019 9:47 AM, Xulin Sun wrote: The strncpy() may truncate the copied string, replace it by the safer strscpy(). To avoid below compile warning with gcc 8.2: drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:In function 'brcmf_vndr_ie': drivers/net/wireless/broadcom/brcm80211/

[PATCH] brcmfmac: replace strncpy() by strscpy()

2019-08-23 Thread Xulin Sun
The strncpy() may truncate the copied string, replace it by the safer strscpy(). To avoid below compile warning with gcc 8.2: drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:In function 'brcmf_vndr_ie': drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:4227:2: warning: 'str