diff options
author | Jim Meyering <meyering@redhat.com> | 2012-10-04 13:10:02 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-05 07:58:38 -0500 |
commit | 9310b9be14f73d4c1e98bfa315fe84326ad9e8e7 (patch) | |
tree | 7a2f88ae2b3d02192f4daf965dd2ba6986888c87 /hw/r2d.c | |
parent | 00ea188125f6ee33e6beaff5da878fa9478e6a0d (diff) |
hw/r2d: add comment: this strncpy use is ok
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/r2d.c')
-rw-r--r-- | hw/r2d.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, sizeof(boot_params.kernel_cmdline)); } |