mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 16:07:55 +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.
|
// The line start is outside the buffer.
|
||||||
// Make space for the newly inserted stuff.
|
// Make space for the newly inserted stuff.
|
||||||
size_t movesize = work-linestart;
|
size_t movesize = work-linestart;
|
||||||
memmove(work + movesize, work, strlen(work));
|
memmove(work + movesize, work, strlen(work)+1);
|
||||||
work_p += movesize;
|
work_p += movesize;
|
||||||
linestart = work;
|
linestart = work;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue