mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[NTOSKRNL]
- Null-terminate command before copying it to LastCommand buffer. svn path=/trunk/; revision=55605
This commit is contained in:
parent
126b25c4bb
commit
c6bc27e78c
1 changed files with 1 additions and 1 deletions
|
@ -3161,8 +3161,8 @@ KdbpReadCommand(
|
|||
if (Buffer != Orig)
|
||||
{
|
||||
KdbRepeatLastCommand = TRUE;
|
||||
RtlStringCbCopyA(LastCommand, sizeof(LastCommand), Orig);
|
||||
*Buffer = '\0';
|
||||
RtlStringCbCopyA(LastCommand, sizeof(LastCommand), Orig);
|
||||
}
|
||||
else if (KdbRepeatLastCommand)
|
||||
RtlStringCbCopyA(Buffer, Size, LastCommand);
|
||||
|
|
Loading…
Reference in a new issue