loader/efi/linux: Use sizeof() instead of constant
This is more consistent with the above code using sizeof(grub_efi_char16_t). Signed-off-by: Frediano Ziglio <frediano.ziglio@cloud.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
c2b2e0dcf5
commit
f3b339af11
@ -231,9 +231,9 @@ grub_arch_efi_linux_boot_image (grub_addr_t addr, grub_size_t size, char *args)
|
|||||||
if (!loaded_image->load_options)
|
if (!loaded_image->load_options)
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
|
|
||||||
loaded_image->load_options_size =
|
len = grub_utf8_to_utf16 (loaded_image->load_options, len,
|
||||||
2 * grub_utf8_to_utf16 (loaded_image->load_options, len,
|
|
||||||
(grub_uint8_t *) args, args_len, NULL);
|
(grub_uint8_t *) args, args_len, NULL);
|
||||||
|
loaded_image->load_options_size = len * sizeof (grub_efi_char16_t);
|
||||||
|
|
||||||
grub_dprintf ("linux", "starting image %p\n", image_handle);
|
grub_dprintf ("linux", "starting image %p\n", image_handle);
|
||||||
status = b->start_image (image_handle, 0, NULL);
|
status = b->start_image (image_handle, 0, NULL);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user