Fix another wrong sprintf usage
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5296 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
0ecdb7b83e
commit
b452bf7051
|
@ -373,32 +373,33 @@ void CMemoryView::OnPaint(wxPaintEvent& event)
|
||||||
|
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
{
|
{
|
||||||
|
char buf[32] = "";
|
||||||
switch (dataType)
|
switch (dataType)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
sprintf(dis, "%s %02X %02X %02X %02X", dis,
|
sprintf(buf, " %02X %02X %02X %02X",
|
||||||
((mema[i]&0xff000000)>>24)&0xFF,
|
((mema[i]&0xff000000)>>24)&0xFF,
|
||||||
((mema[i]&0xff0000)>>16)&0xFF,
|
((mema[i]&0xff0000)>>16)&0xFF,
|
||||||
((mema[i]&0xff00)>>8)&0xFF,
|
((mema[i]&0xff00)>>8)&0xFF,
|
||||||
mema[i]&0xff);
|
mema[i]&0xff);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
sprintf(dis, "%s %02X%02X %02X%02X", dis,
|
sprintf(buf, " %02X%02X %02X%02X",
|
||||||
((mema[i]&0xff000000)>>24)&0xFF,
|
((mema[i]&0xff000000)>>24)&0xFF,
|
||||||
((mema[i]&0xff0000)>>16)&0xFF,
|
((mema[i]&0xff0000)>>16)&0xFF,
|
||||||
((mema[i]&0xff00)>>8)&0xFF,
|
((mema[i]&0xff00)>>8)&0xFF,
|
||||||
mema[i]&0xff);
|
mema[i]&0xff);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
sprintf(dis, "%s %02X%02X%02X%02X", dis,
|
sprintf(buf, " %02X%02X%02X%02X",
|
||||||
((mema[i]&0xff000000)>>24)&0xFF,
|
((mema[i]&0xff000000)>>24)&0xFF,
|
||||||
((mema[i]&0xff0000)>>16)&0xFF,
|
((mema[i]&0xff0000)>>16)&0xFF,
|
||||||
((mema[i]&0xff00)>>8)&0xFF,
|
((mema[i]&0xff00)>>8)&0xFF,
|
||||||
mema[i]&0xff);
|
mema[i]&0xff);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
strcat(dis, buf);
|
||||||
}
|
}
|
||||||
strcat(dis, "\0");
|
|
||||||
curAddress += 32;
|
curAddress += 32;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue