summaryrefslogtreecommitdiffstats
path: root/src/core/Debug.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-12 11:08:30 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-12 11:08:30 +0200
commitcbb298c8dd0ff23007ba403157a47da1ddf134d5 (patch)
tree6f069af03c21d9af52cdcebd6fef7117454394d1 /src/core/Debug.cpp
parentMerge branch 'master' into garages_dev (diff)
parentMerge pull request #402 from Nick007J/master (diff)
downloadre3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.gz
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.bz2
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.lz
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.xz
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.zst
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.zip
Diffstat (limited to 'src/core/Debug.cpp')
-rw-r--r--src/core/Debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Debug.cpp b/src/core/Debug.cpp
index 2b713198..917c99ab 100644
--- a/src/core/Debug.cpp
+++ b/src/core/Debug.cpp
@@ -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;