Merge pull request #405 from erorcun/erorcun

CDebug fix
This commit is contained in:
erorcun 2020-04-12 01:34:10 +03:00 committed by GitHub
commit 727a64e316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ CDebug::DebugAddText(const char *str)
{
int32 i = 0;
if (*str != '\0') {
while (i < MAX_STR_LEN) {
while (i < MAX_STR_LEN - 1) {
ms_aTextBuffer[ms_nCurrentTextLine][i++] = *(str++);
if (*str == '\0')
break;