Author: rharabien
Date: Wed Feb 15 13:24:39 2012
New Revision: 55605
URL:
http://svn.reactos.org/svn/reactos?rev=55605&view=rev
Log:
[NTOSKRNL]
- Null-terminate command before copying it to LastCommand buffer.
Modified:
trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_cli.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_cli.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_cli.c [iso-8859-1] Wed Feb 15 13:24:39 2012
@@ -3161,8 +3161,8 @@
if (Buffer != Orig)
{
KdbRepeatLastCommand = TRUE;
+ *Buffer = '\0';
RtlStringCbCopyA(LastCommand, sizeof(LastCommand), Orig);
- *Buffer = '\0';
}
else if (KdbRepeatLastCommand)
RtlStringCbCopyA(Buffer, Size, LastCommand);