diff --git a/source/components/resources/rsaddr.c b/source/components/resources/rsaddr.c index 2289f2ddb6..011558dda3 100644 --- a/source/components/resources/rsaddr.c +++ b/source/components/resources/rsaddr.c @@ -435,7 +435,7 @@ AcpiRsGetAddressCommon ( /* Avoid undefined behavior: member access within misaligned address */ AML_RESOURCE_ADDRESS Address; - memcpy(&Address, Aml, sizeof(Address)); + memcpy(&Address, (char *)Aml, sizeof(Address)); ACPI_FUNCTION_ENTRY(); /* Validate the Resource Type */