Skip to content

Commit

Permalink
use sizeof instead of magic
Browse files Browse the repository at this point in the history
  • Loading branch information
yukani committed Oct 5, 2024
1 parent bffad13 commit fd30879
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, 8);
strncpy(line->m_szGxtEntry, gxtKey, sizeof(line->m_szGxtEntry));
}

void notsa::script::commands::text::RegisterHandlers() {
Expand Down

0 comments on commit fd30879

Please sign in to comment.