Fix a char buffer destination size in Render.cpp for VideoDX11.

This commit is contained in:
Lioncash 2013-06-18 10:45:57 -04:00
parent d78f00971b
commit f59f059fbf

View File

@ -960,7 +960,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
if (SConfig::GetInstance().m_ShowLag)
{
char lag[10];
StringCchPrintfA(lag, 1000, "Lag: %llu\n", Movie::g_currentLagCount);
StringCchPrintfA(lag, 10, "Lag: %llu\n", Movie::g_currentLagCount);
D3D::font.DrawTextScaled(0, 18, 20, 0.0f, 0xFF00FFFF, lag);
}