From fdec9bdee34f0c9a7fec52a07402389a511d7f77 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 8 Mar 2012 23:17:53 +0000 Subject: [PATCH] - Fixed: The memmove() in AddToConsole() did not include the terminating null character. SVN r3410 (trunk) --- src/c_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c_console.cpp b/src/c_console.cpp index 039125d56..8e439df6c 100644 --- a/src/c_console.cpp +++ b/src/c_console.cpp @@ -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; }