From 20fc2d567465fbbdce68d6e6b34727088b2703f7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 12 Dec 2014 10:29:07 -0500 Subject: [PATCH] MemoryWindow: Remove wxSprintf call, use wxString::Format instead. --- Source/Core/DolphinWX/Debugger/MemoryWindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp b/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp index 0d9a474ed0..f4b127c67b 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp @@ -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);