mirror of
https://github.com/torvalds/linux.git
synced 2025-11-06 19:50:24 +02:00
GCC8 started emitting warning about using strncpy with number of bytes exactly equal destination size which could lead to non-zero terminated string being copied. Use "SYSFS_PATH_MAX - 1" & "SYSFS_BUS_ID_SIZE - 1" as number of bytes to ensure name is always zero-terminated. Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com> Acked-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/r/20190725132209.GA27590@jerryopenix Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| list.h | ||
| Makefile.am | ||
| names.c | ||
| names.h | ||
| sysfs_utils.c | ||
| sysfs_utils.h | ||
| usbip_common.c | ||
| usbip_common.h | ||
| usbip_device_driver.c | ||
| usbip_device_driver.h | ||
| usbip_host_common.c | ||
| usbip_host_common.h | ||
| usbip_host_driver.c | ||
| usbip_host_driver.h | ||
| vhci_driver.c | ||
| vhci_driver.h | ||