From ad13545dac5e4c927ac2a7308be1f31599d03e83 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Sun, 16 Jul 2023 04:13:08 +0700 Subject: [PATCH] TutorMessageEvent::GetNextParameter: Fixed corrupted stack --- regamedll/dlls/tutor_base_tutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/dlls/tutor_base_tutor.cpp b/regamedll/dlls/tutor_base_tutor.cpp index 8723ca2c..2268d18b 100644 --- a/regamedll/dlls/tutor_base_tutor.cpp +++ b/regamedll/dlls/tutor_base_tutor.cpp @@ -104,7 +104,7 @@ char *TutorMessageEvent::GetNextParameter(char *buf, int buflen) Q_strncpy(buf, param->m_data, buflen); #ifdef REGAMEDLL_FIXES - buf[buflen] = '\0'; + buf[buflen - 1] = '\0'; #endif delete param;