diff options
| author | Xulin Sun <[email protected]> | 2019-08-23 15:47:08 +0800 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2019-09-03 16:41:53 +0300 |
| commit | 5f42b382ead278c1f6c3854765c97eb20491aa2a (patch) | |
| tree | af71b7242749bcb98ac4d0a7c4a9684ca6ca967b /scripts/gdb/linux/config.py | |
| parent | 567a9b766b47caffe4b1bf74823e7bc18532d875 (diff) | |
brcmfmac: replace strncpy() by strscpy()
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: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
strncpy(iebuf, add_del_cmd, VNDR_IE_CMD_LEN - 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Xulin Sun <[email protected]>
Acked-by: Arend van Spriel <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions