summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/getac/p470/acpi_tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/getac/p470/acpi_tables.c b/src/mainboard/getac/p470/acpi_tables.c
index 57e2911f63..59c28768d5 100644
--- a/src/mainboard/getac/p470/acpi_tables.c
+++ b/src/mainboard/getac/p470/acpi_tables.c
@@ -70,7 +70,7 @@ static long acpi_create_ecdt(acpi_ecdt_t * ecdt)
ecdt->gpe_bit = 23; // SCI interrupt within GPEx_STS
- strncpy((char *)ecdt->ec_id, ec_id, strlen(ec_id));
+ memcpy(ecdt->ec_id, ec_id, sizeof(ec_id));
header->checksum =
acpi_checksum((void *) ecdt, ecdt_len);