Skip to content

Commit

Permalink
Replace str_format with str_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Apr 2, 2022
1 parent 64d2a7b commit 305d32c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/client/components/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ void CChat::AddLine(const char *pLine, int ClientID, int Mode, int TargetID)
pCurLine->m_NameColor = TEAM_BLUE;
}

str_format(pCurLine->m_aName, sizeof(pCurLine->m_aName), "%s", m_pClient->m_aClients[NameCID].m_aName);
str_format(pCurLine->m_aText, sizeof(pCurLine->m_aText), "%s", pLine);
str_copy(pCurLine->m_aName, m_pClient->m_aClients[NameCID].m_aName, sizeof(pCurLine->m_aName));
str_copy(pCurLine->m_aText, pLine, sizeof(pCurLine->m_aText));
}

char aBuf[1024];
Expand Down

0 comments on commit 305d32c

Please sign in to comment.