TutorMessageEvent::GetNextParameter: Fixed corrupted stack

This commit is contained in:
s1lentq 2023-07-16 04:13:08 +07:00
parent 718f0330f1
commit ad13545dac

View File

@ -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;