linux-stable/drivers/net/wireless/legacy
Kalle Valo 707a13c7e4 wifi: ray_cs: fix stringop-truncation GCC warning
GCC 12.2 with W=1 warns:

drivers/net/wireless/legacy/ray_cs.c:630:17: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]

The driver uses SSID as a string which is just wrong, it should be treated as a
byte array instead. But as the driver is ancient and most likely there are no
users so convert it to use strscpy(). This makes sure that the string is
NUL-terminated and also the warning is fixed.

Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230613140918.389690-5-kvalo@kernel.org
2023-06-16 12:24:16 +03:00
..
Kconfig
Makefile
ray_cs.c wifi: ray_cs: fix stringop-truncation GCC warning 2023-06-16 12:24:16 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c wifi: rndis_wlan: Replace fake flex-array with flexible-array member 2023-03-31 17:48:27 +03:00
wl3501.h
wl3501_cs.c wifi: wl3501_cs: Fix an error handling path in wl3501_probe() 2023-05-25 19:16:49 +03:00