Merge pull request #1687 from lioncash/sprintf

MemoryWindow: Remove wxSprintf call, use wxString::Format instead.
This commit is contained in:
Lioncash 2014-12-14 14:26:03 -05:00
commit ff41c2a1a1
1 changed files with 1 additions and 4 deletions

View File

@ -423,10 +423,7 @@ void CMemoryWindow::onSearch(wxCommandEvent& event)
{
//Match was found
wxMessageBox(_("A match was found. Placing viewer at the offset."));
wxChar tmpwxstr[128] = {0};
wxSprintf(tmpwxstr, "%08x", i);
wxString tmpwx(tmpwxstr);
addrbox->SetValue(tmpwx);
addrbox->SetValue(wxString::Format("%08x", i));
//memview->curAddress = i;
//memview->Refresh();
OnAddrBoxChange(event);