mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[RTL] Fix overflow case in vDbgPrintExWithPrefixInternal
The string should always be NULL terminated.
This commit is contained in:
parent
f80d978fc0
commit
3cddd76f57
1 changed files with 3 additions and 2 deletions
|
@ -102,10 +102,11 @@ vDbgPrintExWithPrefixInternal(IN PCCH Prefix,
|
|||
if (Length == MAXULONG)
|
||||
{
|
||||
/* Terminate it if we went over-board */
|
||||
Buffer[sizeof(Buffer) - 1] = '\n';
|
||||
Buffer[sizeof(Buffer) - 2] = '\n';
|
||||
Buffer[sizeof(Buffer) - 1] = '\0';
|
||||
|
||||
/* Put maximum */
|
||||
Length = sizeof(Buffer);
|
||||
Length = sizeof(Buffer) - 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue