We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49147be commit 0fc6ff5Copy full SHA for 0fc6ff5
arch/x86/xen/efi.c
@@ -138,7 +138,7 @@ void __init xen_efi_init(struct boot_params *boot_params)
138
if (efi_systab_xen == NULL)
139
return;
140
141
- strncpy((char *)&boot_params->efi_info.efi_loader_signature, "Xen",
+ strscpy((char *)&boot_params->efi_info.efi_loader_signature, "Xen",
142
sizeof(boot_params->efi_info.efi_loader_signature));
143
boot_params->efi_info.efi_systab = (__u32)__pa(efi_systab_xen);
144
boot_params->efi_info.efi_systab_hi = (__u32)(__pa(efi_systab_xen) >> 32);
0 commit comments