mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
dm: use strncpy to replace strcpy
Tracked-On: #2133 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
@@ -274,7 +274,7 @@ acrn_sw_load_vsbl(struct vmctx *ctx)
|
||||
vsbl_para->acpi_table_size = get_acpi_table_length();
|
||||
|
||||
if (with_bootargs) {
|
||||
strcpy(ctx->baseaddr + BOOTARGS_OFF(ctx), get_bootargs());
|
||||
strncpy(ctx->baseaddr + BOOTARGS_OFF(ctx), get_bootargs(), STR_LEN);
|
||||
vsbl_para->bootargs_address = BOOTARGS_OFF(ctx);
|
||||
} else {
|
||||
vsbl_para->bootargs_address = 0;
|
||||
|
||||
Reference in New Issue
Block a user