mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 18:04:08 +03:00
Debugger: Fix strlen +1 issue with History command.
Allocate strlen +1 for history buffers.
This commit is contained in:
parent
a9d8bd031d
commit
c0e2cf9b53
@ -175,13 +175,13 @@ AcpiDbAddToHistory (
|
||||
AcpiOsFree (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].
|
||||
Command);
|
||||
AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command =
|
||||
AcpiOsAllocate (CmdLen);
|
||||
AcpiOsAllocate (CmdLen + 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command =
|
||||
AcpiOsAllocate (CmdLen);
|
||||
AcpiOsAllocate (CmdLen + 1);
|
||||
}
|
||||
|
||||
ACPI_STRCPY (AcpiGbl_HistoryBuffer[AcpiGbl_NextHistoryIndex].Command,
|
||||
|
Loading…
x
Reference in New Issue
Block a user