diff --git a/source/game_sa/Scripts/Commands/Text.cpp b/source/game_sa/Scripts/Commands/Text.cpp index 51235ff05..78c4386c6 100644 --- a/source/game_sa/Scripts/Commands/Text.cpp +++ b/source/game_sa/Scripts/Commands/Text.cpp @@ -64,7 +64,7 @@ void DisplayText(CVector2D pos, const char* gxtKey) { line->m_Pos = pos; line->param1 = -1; line->param2 = -1; - strncpy(line->m_szGxtEntry, gxtKey, sizeof(line->m_szGxtEntry)); + strcpy_s(line->m_szGxtEntry, gxtKey); } void notsa::script::commands::text::RegisterHandlers() {