From 4c9e8f77e41aa097396649d45b86cf7a8358cf9b Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 11 Jul 2019 23:40:41 -0400 Subject: [PATCH] BootManager: Take explicit instead of implicit reference. Passing a type& to a va-args turns it into a pointer as per the Itanium ABI; but we shouldn't rely on such trickery. Explicitly capture a reference to it instead. --- src/apps/bootmanager/LegacyBootMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/bootmanager/LegacyBootMenu.cpp b/src/apps/bootmanager/LegacyBootMenu.cpp index 297e29789c..a8935e287c 100644 --- a/src/apps/bootmanager/LegacyBootMenu.cpp +++ b/src/apps/bootmanager/LegacyBootMenu.cpp @@ -612,7 +612,7 @@ LegacyBootMenu::_GetBIOSDrive(const char* device, int8& drive) if (fd < 0) return errno; - status_t status = ioctl(fd, B_GET_BIOS_DRIVE_ID, drive, 1); + status_t status = ioctl(fd, B_GET_BIOS_DRIVE_ID, &drive, 1); close(fd); return status; }