Commit 9310b9be authored by Jim Meyering's avatar Jim Meyering Committed by Anthony Liguori

hw/r2d: add comment: this strncpy use is ok

Signed-off-by: default avatarJim Meyering <>
Signed-off-by: default avatarAnthony Liguori <>
parent 00ea1881
......@@ -332,6 +332,8 @@ static void r2d_init(ram_addr_t ram_size,
if (kernel_cmdline) {
/* I see no evidence that this .kernel_cmdline buffer requires
NUL-termination, so using strncpy should be ok. */
strncpy(boot_params.kernel_cmdline, kernel_cmdline,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment