aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorSunil V L <[email protected]>2023-07-25 05:29:25 +0000
committerRafael J. Wysocki <[email protected]>2023-08-17 17:38:35 +0000
commit99c31bff185610304532c4acf00cda341572e2d4 (patch)
tree82d6b5d3085c4e34cf9571e0b844de7523f9fbd7 /rust/helpers.c
parentLinux 6.5-rc6 (diff)
downloadkernel-99c31bff185610304532c4acf00cda341572e2d4.tar.gz
kernel-99c31bff185610304532c4acf00cda341572e2d4.zip
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]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions