commit | 9310b9be14f73d4c1e98bfa315fe84326ad9e8e7 | [log] [tgz] |
---|---|---|
author | Jim Meyering <meyering@redhat.com> | Thu Oct 04 13:10:02 2012 +0200 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Fri Oct 05 07:58:38 2012 -0500 |
tree | 7a2f88ae2b3d02192f4daf965dd2ba6986888c87 | |
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>
diff --git a/hw/r2d.c b/hw/r2d.c index 0f16e81..1bc191f 100644 --- a/hw/r2d.c +++ b/hw/r2d.c
@@ -332,6 +332,8 @@ } 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)); }