fixes small memory overwrite of gekko disasm
all this sprintf stuff is unsafe :( dunno if there are other places with similar problems... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@982 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
5129341a9c
commit
645f621481
|
@ -2210,7 +2210,7 @@ namespace PPCDisasm
|
|||
|
||||
const char *DisassembleGekko(unsigned int opcode, unsigned int curInstAddr)
|
||||
{
|
||||
char opcodeStr[32], operandStr[32];
|
||||
char opcodeStr[64], operandStr[64];
|
||||
PPCDisasm::DisasmPara_PPC dp;
|
||||
static char buf[128];
|
||||
static unsigned int opc, adr;
|
||||
|
@ -2244,4 +2244,4 @@ const char *GetGRPName(unsigned int index)
|
|||
if (index < 32)
|
||||
return gprnames[index];
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue