Replaced sprintf with snprintf.

This commit is contained in:
Marcus Sundberg 2000-01-08 23:37:13 +00:00
parent a3ae628e5a
commit 7df47c6fdb

View file

@ -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;