mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-25 03:17:53 +00:00
Replace sprintf() with StrFormat() (PR #1048)
This commit is contained in:
+3
-4
@@ -84,11 +84,10 @@ void SSI_Output(void)
|
||||
int ssi2 = ssiRegs[SSI_RATEINF];
|
||||
|
||||
LogOutput("SSI: ");
|
||||
for (int i=0; i<=4; i++)
|
||||
for (int i = 0; i <= 4; i++)
|
||||
{
|
||||
char r[3]="--";
|
||||
if (ssiRegs[i]>=0) sprintf(r,"%02X",ssiRegs[i]);
|
||||
LogOutput("%s ", r);
|
||||
std::string r = (ssiRegs[i] >= 0) ? StrFormat("%02X", ssiRegs[i]) : "--";
|
||||
LogOutput("%s ", r.c_str());
|
||||
ssiRegs[i] = -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user