diff --git a/Windows/Debugger/Debugger_Disasm.cpp b/Windows/Debugger/Debugger_Disasm.cpp index 60f66b0e70..488b843fe4 100644 --- a/Windows/Debugger/Debugger_Disasm.cpp +++ b/Windows/Debugger/Debugger_Disasm.cpp @@ -866,7 +866,7 @@ void CDisasm::UpdateDialog(bool _bComplete) rl->redraw(); // Update Debug Counter wchar_t tempTicks[24]; - wsprintf(tempTicks, L"%lld", CoreTiming::GetTicks()-lastTicks); + _snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks); SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks); // Update Register Dialog