linux/drivers/net/wireless/intersil/hostap
Kalle Valo 5ea0c31309 wifi: hostap: fix stringop-truncations GCC warning
With GCC 13.1 and W=1 hostap has a warning:

drivers/net/wireless/intersil/hostap/hostap_ioctl.c:3633:17: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation]

fortify-string.h recommends not to use strncpy() so use strscpy() which fixes
the warning. Also now it's guarenteed that the string is NUL-terminated.

Compile tested only.

Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230613140918.389690-4-kvalo@kernel.org
2023-06-16 12:24:16 +03:00
..
hostap.h
hostap_80211.h
hostap_80211_rx.c
hostap_80211_tx.c
hostap_ap.c treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
hostap_ap.h
hostap_common.h
hostap_config.h
hostap_cs.c
hostap_download.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
hostap_hw.c
hostap_info.c
hostap_ioctl.c wifi: hostap: fix stringop-truncations GCC warning 2023-06-16 12:24:16 +03:00
hostap_main.c
hostap_pci.c
hostap_plx.c
hostap_proc.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
hostap_wlan.h
Kconfig wifi: add HAS_IOPORT dependencies 2023-05-25 19:08:30 +03:00
Makefile