aboutsummaryrefslogtreecommitdiff
path: root/src/core/Debug.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-15 00:10:50 +0300
committerSergeanur <s.anureev@yandex.ua>2020-04-15 00:10:50 +0300
commite373d0526ef07183cba8e89aba46f2ab416e67ba (patch)
treee6b2052e078cd2ad2ae1503262421c6858a20a0f /src/core/Debug.cpp
parentc9ace44ca8abca62ece0012362b94b115be65e1b (diff)
parent6d934892ecd3c4b6f025fbe2c4e6504fd979d391 (diff)
Merge branch 'master' into MoreLanguages
# Conflicts: # src/core/Frontend.cpp # src/render/Font.cpp # src/render/Hud.cpp # src/render/Hud.h # src/text/Messages.cpp # src/text/Text.cpp
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;