We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d770bfb commit d964547Copy full SHA for d964547
1 file changed
arch/lkl/kernel/setup.c
@@ -61,7 +61,7 @@ int __init lkl_start_kernel(struct lkl_host_operations *ops,
61
va_end(ap);
62
63
if (ops->virtio_devices)
64
- strncpy(boot_command_line + ret, ops->virtio_devices,
+ strscpy(boot_command_line + ret, ops->virtio_devices,
65
COMMAND_LINE_SIZE - ret);
66
67
memcpy(cmd_line, boot_command_line, COMMAND_LINE_SIZE);
0 commit comments