Skip to content

Commit

Permalink
revert to strcpy_s
Browse files Browse the repository at this point in the history
  • Loading branch information
yukani committed Oct 5, 2024
1 parent fd30879 commit 8eca97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/game_sa/Scripts/Commands/Text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8eca97b

Please sign in to comment.