mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- Fixed: The memmove() in AddToConsole() did not include the terminating null character.
SVN r3410 (trunk)
This commit is contained in:
parent
e5e1ee00a6
commit
fdec9bdee3
1 changed files with 1 additions and 1 deletions
|
@ -768,7 +768,7 @@ void AddToConsole (int printlevel, const char *text)
|
|||
// The line start is outside the buffer.
|
||||
// Make space for the newly inserted stuff.
|
||||
size_t movesize = work-linestart;
|
||||
memmove(work + movesize, work, strlen(work));
|
||||
memmove(work + movesize, work, strlen(work)+1);
|
||||
work_p += movesize;
|
||||
linestart = work;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue