]> 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)
commit7f854ffda1a3b946d950161e78fb9b75b4a4989e
tree47e0ea599b79256bb1e4d88c272bfbaef5eee380
parenta78561e4eaa5985ed24ee5e9ee33a43bc2495c71
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