]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: use strlcpy() instead of strcpy()
authorNeo Jou <neojou@gmail.com>
Tue, 21 May 2019 09:12:20 +0000 (17:12 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 28 May 2019 12:25:33 +0000 (15:25 +0300)
commitb875acabe5b86b6f0fa7fc3efefce53831ce2e1d
tree47e0ea599b79256bb1e4d88c272bfbaef5eee380
parent59247673c129ef55ffd95514e64022a00d9d81fb
brcmfmac: use strlcpy() instead of strcpy()

The function strcpy() is inherently not safe. Though the function
works without problems here, it would be better to use other safer
function, e.g. strlcpy(), to replace strcpy() still.

Signed-off-by: Neo Jou <neojou@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c