Skip to content

Commit

Permalink
TutorMessageEvent::GetNextParameter: Fixed corrupted stack
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Jul 15, 2023
1 parent 718f033 commit ad13545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/tutor_base_tutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad13545

Please sign in to comment.