2022-04-03 21:18:02 +00:00
|
|
|
Index: acpica-unix2-20220331/source/include/actypes.h
|
2020-10-19 18:24:09 +00:00
|
|
|
===================================================================
|
2022-04-03 21:18:02 +00:00
|
|
|
--- acpica-unix2-20220331.orig/source/include/actypes.h
|
|
|
|
+++ acpica-unix2-20220331/source/include/actypes.h
|
|
|
|
@@ -564,7 +564,7 @@ typedef UINT64
|
2020-02-26 00:13:42 +00:00
|
|
|
#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) */
|