summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/components/debugger/dbfileio.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2013-08-24 13:42:20 +0000
committermarkm <markm@FreeBSD.org>2013-08-24 13:42:20 +0000
commit6228164acab21e650d8ce41758f11a9188cdcf9d (patch)
treef402d81e3fb54380b80e4c1a1d1d5bfe58f4f519 /sys/contrib/dev/acpica/components/debugger/dbfileio.c
parent7afe86e84d4eb4f4ecfc090764da8acb5f214ae6 (diff)
parent413bf347cd8d75b5cc702edaa5b26ae8b14c9f6b (diff)
downloadFreeBSD-src-6228164acab21e650d8ce41758f11a9188cdcf9d.zip
FreeBSD-src-6228164acab21e650d8ce41758f11a9188cdcf9d.tar.gz
MFC
Diffstat (limited to 'sys/contrib/dev/acpica/components/debugger/dbfileio.c')
-rw-r--r--sys/contrib/dev/acpica/components/debugger/dbfileio.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/contrib/dev/acpica/components/debugger/dbfileio.c b/sys/contrib/dev/acpica/components/debugger/dbfileio.c
index e03bb40..05fa4e7 100644
--- a/sys/contrib/dev/acpica/components/debugger/dbfileio.c
+++ b/sys/contrib/dev/acpica/components/debugger/dbfileio.c
@@ -142,7 +142,8 @@ AcpiDbOpenDebugFile (
}
AcpiOsPrintf ("Debug output file %s opened\n", Name);
- ACPI_STRCPY (AcpiGbl_DbDebugFilename, Name);
+ ACPI_STRNCPY (AcpiGbl_DbDebugFilename, Name,
+ sizeof (AcpiGbl_DbDebugFilename));
AcpiGbl_DbOutputToFile = TRUE;
#endif
@@ -274,11 +275,9 @@ AcpiDbReadTable (
fseek (fp, 0, SEEK_SET);
- /* The RSDT, FACS and S3PT tables do not have standard ACPI headers */
+ /* The RSDP table does not have standard ACPI header */
- if (ACPI_COMPARE_NAME (TableHeader.Signature, "RSD ") ||
- ACPI_COMPARE_NAME (TableHeader.Signature, "FACS") ||
- ACPI_COMPARE_NAME (TableHeader.Signature, "S3PT"))
+ if (ACPI_COMPARE_NAME (TableHeader.Signature, "RSD "))
{
*TableLength = FileSize;
StandardHeader = FALSE;
OpenPOWER on IntegriCloud