diff --git a/stepmania/src/RageThreads.cpp b/stepmania/src/RageThreads.cpp index ceac04dfff..f765d4b6b2 100644 --- a/stepmania/src/RageThreads.cpp +++ b/stepmania/src/RageThreads.cpp @@ -102,7 +102,7 @@ void ThreadSlot::ThreadCheckpoint::Set( const char *szFile, int iLine, const cha m_szFile = p+1; } - sprintf( m_szFormattedBuf, " %s:%i %s", m_szFile, m_iLine, m_szMessage? m_szMessage:"" ); + snprintf( m_szFormattedBuf, sizeof(m_szFormattedBuf), " %s:%i %s", m_szFile, m_iLine, m_szMessage? m_szMessage:"" ); } const char *ThreadSlot::ThreadCheckpoint::GetFormattedCheckpoint()