sprintf audit.

This commit is contained in:
Bill Currie 2000-12-05 16:51:01 +00:00
parent b34504057c
commit 29970187d7
7 changed files with 8 additions and 7 deletions

View file

@ -640,7 +640,8 @@ void Con_DrawConsole (int lines)
dlbar[i++] = '\x82';
dlbar[i] = 0;
sprintf(dlbar + strlen(dlbar), " %02d%%", cls.downloadpercent);
snprintf(dlbar + strlen(dlbar), sizeof (dlbar) - strlen (dlbar),
" %02d%%", cls.downloadpercent);
// draw it
y = con_vislines-22 + 8;