acpica-tools/armv7-str-fixes.patch
Al Stone 97df1c2ef7 Update all patches to match upstream 20211217 release
Signed-off-by: Al Stone <ahs3@redhat.com>
2022-03-18 16:08:40 -06:00

14 lines
835 B
Diff

Index: acpica-unix2-20211217/source/include/actypes.h
===================================================================
--- acpica-unix2-20211217.orig/source/include/actypes.h
+++ acpica-unix2-20211217/source/include/actypes.h
@@ -560,7 +560,7 @@ typedef UINT64
#define ACPI_COPY_NAMESEG(dest,src) (*ACPI_CAST_PTR (UINT32, (dest)) = *ACPI_CAST_PTR (UINT32, (src)))
#else
#define ACPI_COMPARE_NAMESEG(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, (b)), ACPI_NAMESEG_SIZE))
-#define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE))
+#define ACPI_COPY_NAMESEG(dest,src) (memcpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE))
#endif
/* Support for the special RSDP signature (8 characters) */