mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +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