[NTOSKRNL]

- Null-terminate command before copying it to LastCommand buffer.

svn path=/trunk/; revision=55605
This commit is contained in:
Rafal Harabien 2012-02-15 13:24:39 +00:00
parent 126b25c4bb
commit c6bc27e78c

View file

@ -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);