summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-04-12 00:33:04 +0200
committereray orçunus <erayorcunus@gmail.com>2020-04-12 00:33:04 +0200
commit1932d98482e3622501f7467a9162f4a3ba7cce19 (patch)
tree65b953969047f0303a6a23a6055c9ae4b5b04da6 /src
parentMerge pull request #400 from erorcun/erorcun (diff)
downloadre3-1932d98482e3622501f7467a9162f4a3ba7cce19.tar
re3-1932d98482e3622501f7467a9162f4a3ba7cce19.tar.gz
re3-1932d98482e3622501f7467a9162f4a3ba7cce19.tar.bz2
re3-1932d98482e3622501f7467a9162f4a3ba7cce19.tar.lz
re3-1932d98482e3622501f7467a9162f4a3ba7cce19.tar.xz
re3-1932d98482e3622501f7467a9162f4a3ba7cce19.tar.zst
re3-1932d98482e3622501f7467a9162f4a3ba7cce19.zip
Diffstat (limited to 'src')
-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;