Skip to content

Commit 88aa811

Browse files
author
nitrocaster
committed
CGameFont: replace misused xr_sprintf to vsnprintf.
1 parent 6027cb1 commit 88aa811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrEngine/GameFont.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void CGameFont::MasterOut(
285285
rs.c = dwCurrentColor;
286286
rs.height = fCurrentHeight;
287287
rs.align = eCurrentAlignment;
288-
int vs_sz = xr_sprintf(rs.string, fmt, p);
288+
int vs_sz = vsnprintf(rs.string, sizeof(rs.string), fmt, p);
289289
//VERIFY( ( vs_sz != -1 ) && ( rs.string[ vs_sz ] == '\0' ) );
290290

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

0 commit comments

Comments
 (0)