From: Daan De Meyer Date: Sun, 31 Jan 2021 21:49:17 +0000 (+0000) Subject: boot: Fix void pointer arithmetic warning X-Git-Tag: v248-rc1~220^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d47b7c5720bddbaa54687b14fff1c9a81773538e;p=thirdparty%2Fsystemd.git boot: Fix void pointer arithmetic warning --- diff --git a/src/boot/efi/stub.c b/src/boot/efi/stub.c index 92999166d0b..0bef6b1c44f 100644 --- a/src/boot/efi/stub.c +++ b/src/boot/efi/stub.c @@ -50,7 +50,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { } if (szs[0] > 0) - cmdline = (CHAR8 *)(loaded_image->ImageBase + addrs[0]); + cmdline = (CHAR8 *)(loaded_image->ImageBase) + addrs[0]; cmdline_len = szs[0];