console.c: use q_snprintf for printing version number

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1409 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2017-05-29 06:54:14 +00:00
parent e45de4c68a
commit d09bbd2cd7
1 changed files with 1 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ void Con_DrawConsole (int lines, qboolean drawinput)
//draw version number in bottom right
y += 8;
sprintf (ver, "QuakeSpasm " QUAKESPASM_VER_STRING);
q_snprintf (ver, sizeof(ver), "QuakeSpasm " QUAKESPASM_VER_STRING);
for (x = 0; x < (int)strlen(ver); x++)
Draw_Character ((con_linewidth - strlen(ver) + x + 2)<<3, y, ver[x] /*+ 128*/);
}