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:
fires.gc 2008-10-27 22:01:21 +00:00
parent 5129341a9c
commit 645f621481
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}