Skip to content

Commit

Permalink
xrEngine/GameFont: vsprintf() -> xr_sprintf().
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 11, 2015
1 parent f11fd37 commit 8efd655
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/xrEngine/GameFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,7 @@ void CGameFont::MasterOut(
rs.c = dwCurrentColor;
rs.height = fCurrentHeight;
rs.align = eCurrentAlignment;
#ifndef _EDITOR
int vs_sz = vsprintf_s(rs.string, fmt, p);
#else
int vs_sz = vsprintf(rs.string, fmt, p);
#endif
int vs_sz = xr_sprintf(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 8efd655

Please sign in to comment.