diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 | 
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2013-08-23 18:01:58 +0000 | 
| commit | 59ce063597ddbda74269a45aba8187dece2fe00a (patch) | |
| tree | 89234dd9f502de2faaf4a280ccd0d3785a7ae96f /source/components/debugger/dbfileio.c | |
| parent | dbded195f9840f9044a6828c8877c6bf0a956482 (diff) | |
Diffstat (limited to 'source/components/debugger/dbfileio.c')
| -rw-r--r-- | source/components/debugger/dbfileio.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/source/components/debugger/dbfileio.c b/source/components/debugger/dbfileio.c index 3a8ece70455b..3ba9653ddc9a 100644 --- a/source/components/debugger/dbfileio.c +++ b/source/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; | 
