Merge branch 'console-th'

This commit is contained in:
Unknown W. Brackets committed 2013-01-31 22:59:53 -08:00
commit eb97a3bd15
1 file changed
+1 -1
+1 -1
View File
@@ -340,7 +340,7 @@ void ConsoleListener::SendToThread(LogTypes::LOG_LEVELS Level, const char *Text)
logWritePos -= LOG_PENDING_MAX;
int start = 0;
if (logWritePos < LOG_PENDING_MAX)
if (logWritePos < LOG_PENDING_MAX && logWritePos + Len >= LOG_PENDING_MAX)
{
const int count = LOG_PENDING_MAX - logWritePos;
memcpy(logPending + logWritePos, Text, count);