From 0c5526f2fd6efc91f50b0d53a3d165f0baa4d432 Mon Sep 17 00:00:00 2001 From: Clayton Walker Date: Sun, 27 Apr 2014 17:11:03 -0600 Subject: [PATCH] Gui: Replace sscanf with ToULong --- rpcs3/Gui/InterpreterDisAsm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Gui/InterpreterDisAsm.cpp b/rpcs3/Gui/InterpreterDisAsm.cpp index 596516b9bc..051c1b3e65 100644 --- a/rpcs3/Gui/InterpreterDisAsm.cpp +++ b/rpcs3/Gui/InterpreterDisAsm.cpp @@ -455,7 +455,7 @@ void InterpreterDisAsmFrame::Show_Val(wxCommandEvent& WXUNUSED(event)) if(diag->ShowModal() == wxID_OK) { u64 pc = CPU ? CPU->PC : 0x0; - sscanf(p_pc->GetValue(), "%llx", &pc); + p_pc->GetValue().ToULong(&pc, 16); Emu.GetMarkedPoints().push_back(pc); remove_markedPC.push_back(Emu.GetMarkedPoints().size()-1); ShowAddr(CentrePc(pc));