summaryrefslogtreecommitdiff
path: root/source/components/debugger/dbhistry.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/debugger/dbhistry.c')
-rw-r--r--source/components/debugger/dbhistry.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/components/debugger/dbhistry.c b/source/components/debugger/dbhistry.c
index bc29d3b09ebc..a05e842062dc 100644
--- a/source/components/debugger/dbhistry.c
+++ b/source/components/debugger/dbhistry.c
@@ -45,7 +45,6 @@
#include "accommon.h"
#include "acdebug.h"
-#ifdef ACPI_DEBUGGER
#define _COMPONENT ACPI_CA_DEBUGGER
ACPI_MODULE_NAME ("dbhistry")
@@ -102,6 +101,7 @@ AcpiDbAddToHistory (
{
BufferLen = (UINT16) strlen (
AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command);
+
if (CmdLen > BufferLen)
{
AcpiOsFree (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].
@@ -269,5 +269,3 @@ AcpiDbGetHistoryByIndex (
AcpiOsPrintf ("Invalid history number: %u\n", HistoryIndex);
return (NULL);
}
-
-#endif /* ACPI_DEBUGGER */