mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 16:50:48 +00:00
sprintf audit.
This commit is contained in:
parent
b34504057c
commit
29970187d7
7 changed files with 8 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue