mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
Replaced sprintf with snprintf.
This commit is contained in:
parent
a3ae628e5a
commit
7df47c6fdb
1 changed files with 2 additions and 1 deletions
|
@ -439,7 +439,8 @@ void Sbar_UpdateScoreboard (void)
|
|||
{
|
||||
k = fragsort[i];
|
||||
s = &cl.scores[k];
|
||||
sprintf(&scoreboardtext[i][1], "%3i %s", s->frags, s->name);
|
||||
snprintf(&scoreboardtext[i][1], sizeof(*scoreboardtext)-1,
|
||||
"%3i %s", s->frags, s->name);
|
||||
|
||||
top = s->colors & 0xf0;
|
||||
bottom = (s->colors & 15) <<4;
|
||||
|
|
Loading…
Reference in a new issue