Files
linux/drivers/pnp
Sunil V L 99c31bff18 PNP: ACPI: Fix string truncation warning
LKP reports below warning when building for RISC-V.

drivers/pnp/pnpacpi/core.c:253:17:
warning: 'strncpy' specified bound 50 equals destination
size [-Wstringop-truncation]

This appears to be a valid issue since the destination string may not be
null-terminated.

To fix this, append the NUL explicitly after the strncpy().

Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Sunil V L <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
2023-08-17 19:38:35 +02:00
..
2022-01-22 08:33:37 +02:00
2021-05-17 16:54:01 +02:00
2021-05-17 16:54:01 +02:00