Fix uninitialised variable use in GS title bar

When the GS plugin is suspended and resumed, PCSX2 will set GS frame
title using an uninitialised array, making it prone to crashing in
those situations. Initialise the array.
This commit is contained in:
Jonathan Li 2015-07-08 17:32:06 +01:00
parent 3debd3ae12
commit badfcb6e3f
1 changed files with 1 additions and 0 deletions

View File

@ -558,6 +558,7 @@ void GSFrame::OnUpdateTitle( wxTimerEvent& evt )
double fps = wxGetApp().FpsManager.GetFramerate();
char gsDest[128];
gsDest[0] = 0; // No need to set whole array to NULL.
GSgetTitleInfo2( gsDest, sizeof(gsDest) );
const wxChar* limiterStr = L"None";