Skip to content

Commit

Permalink
CGameFont: replace misused xr_sprintf to vsnprintf.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 12, 2015
1 parent 6027cb1 commit 88aa811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrEngine/GameFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void CGameFont::MasterOut(
rs.c = dwCurrentColor;
rs.height = fCurrentHeight;
rs.align = eCurrentAlignment;
int vs_sz = xr_sprintf(rs.string, fmt, p);
int vs_sz = vsnprintf(rs.string, sizeof(rs.string), fmt, p);
//VERIFY( ( vs_sz != -1 ) && ( rs.string[ vs_sz ] == '\0' ) );

rs.string[sizeof(rs.string) - 1] = 0;
Expand Down

0 comments on commit 88aa811

Please sign in to comment.