- Fixed: The memmove() in AddToConsole() did not include the terminating null character.

SVN r3410 (trunk)
This commit is contained in:
Randy Heit 2012-03-08 23:17:53 +00:00
parent e5e1ee00a6
commit fdec9bdee3

View file

@ -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;
}