Skip to content

Commit d964547

Browse files
committed
lkl: replace strncpy with strscpy
According to Documentation/process/deprecated.rst, strncpy should be replaced with strscpy. Signed-off-by: Akira Moroo <retrage01@gmail.com>
1 parent d770bfb commit d964547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/lkl/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int __init lkl_start_kernel(struct lkl_host_operations *ops,
6161
va_end(ap);
6262

6363
if (ops->virtio_devices)
64-
strncpy(boot_command_line + ret, ops->virtio_devices,
64+
strscpy(boot_command_line + ret, ops->virtio_devices,
6565
COMMAND_LINE_SIZE - ret);
6666

6767
memcpy(cmd_line, boot_command_line, COMMAND_LINE_SIZE);

0 commit comments

Comments
 (0)