diff options
author | Jim Meyering | 2012-10-04 13:10:02 +0200 |
---|---|---|
committer | Anthony Liguori | 2012-10-05 14:58:38 +0200 |
commit | 9310b9be14f73d4c1e98bfa315fe84326ad9e8e7 (patch) | |
tree | 7a2f88ae2b3d02192f4daf965dd2ba6986888c87 /hw | |
parent | qcow2: mark this file's sole strncpy use as justified (diff) | |
download | qemu-9310b9be14f73d4c1e98bfa315fe84326ad9e8e7.tar.gz qemu-9310b9be14f73d4c1e98bfa315fe84326ad9e8e7.tar.xz qemu-9310b9be14f73d4c1e98bfa315fe84326ad9e8e7.zip |
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')
-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)); } |