aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2021-10-19 00:12:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-19 09:33:31 +0200
commit2d68d8ee8fec9c2db1f37ed6fa82255d4e36df4c (patch)
tree7b3bf98513bf05f8e03509219f6f9e2e36400064 /tools/perf/scripts/python
parentstaging: mt7621-dts: get rid of nodes with no in-tree driver (diff)
downloadlinux-2d68d8ee8fec9c2db1f37ed6fa82255d4e36df4c.tar.gz
linux-2d68d8ee8fec9c2db1f37ed6fa82255d4e36df4c.zip
staging: r8188eu: fix a gcc warning
Replace strncpy with strlcpy to fix the following gcc warning. drivers/staging/r8188eu/os_dep/ioctl_linux.c: In function 'rtw_wx_set_enc_ext': drivers/staging/r8188eu/os_dep/ioctl_linux.c:1929:9: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 1929 | strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The destination buffer size is IEEE_CRYPT_ALG_NAME_LEN and the length of the string to copy is always < IEEE_CRYPT_ALG_NAME_LEN. So strlcpy will never truncate the string. Acked-by: Phillip Potter <phil@philpotter.co.uk> Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20211018221231.7837-1-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions