Correct the latest patches for other arches

Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
Al Stone 2020-02-25 12:05:53 -07:00
parent a3576b784d
commit cd3d796852
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/debugger/dbtest.c acpica
/* Write a new value */
+ ValueToWrite = AcpiOsAllocateZeroed(strlen(TestStr)+1);
+ strncpy(ValueToWrite, TestStr, strlen(TestStr));
+ strncpy(ValueToWrite, TestStr, strlen(TestStr)+1);
+
WriteValue.Type = ACPI_TYPE_STRING;
WriteValue.String.Length = strlen (ValueToWrite);

View File

@ -6,7 +6,7 @@ diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acp
UINT32 i;
BOOLEAN FoundBadChar = FALSE;
- UINT32 OriginalName;
+ char OriginalName[ACPI_NAMESEG+SIZE+1];
+ char OriginalName[ACPI_NAMESEG_SIZE+1];
ACPI_FUNCTION_NAME (UtRepairName);
@ -15,14 +15,14 @@ diff -Naur acpica-unix2-20200214.orig/source/components/utilities/utstring.c acp
ACPI_WARNING ((AE_INFO,
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
- OriginalName, Name));
+ (unsigned int)OriginalName, Name));
+ (unsigned int)*OriginalName, Name));
}
else
{
ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
"Invalid character(s) in name (0x%.8X), repaired: [%4.4s]",
- OriginalName, Name));
+ (unsigned int)OriginalName, Name));
+ (unsigned int)*OriginalName, Name));
}
}
}