]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitbbfab331e3abd9fa8767eea6bf5c4684cdd4b934
tree47e0ea599b79256bb1e4d88c272bfbaef5eee380
parentb07e1ae2ce53a60af67009ef199603a588003e07
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