diff --git a/source/game_sa/Scripts/Commands/Text.cpp b/source/game_sa/Scripts/Commands/Text.cpp index ff18ba1c3..51235ff05 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, 8); + strncpy(line->m_szGxtEntry, gxtKey, sizeof(line->m_szGxtEntry)); } void notsa::script::commands::text::RegisterHandlers() {