Debugger: fixed warning (and a typo)

This commit is contained in:
tomcw
2022-05-01 15:15:09 +01:00
parent 4063611e71
commit ccb4582bf9
2 changed files with 2 additions and 3 deletions

View File

@@ -392,8 +392,7 @@ int GetDisassemblyLine(WORD nBaseAddress, DisasmLine_t& line_)
{
if (iOpmode == AM_M)
{
//sTarget = StrFormat( g_aOpmodes[ iOpmode ].m_sFormat, (unsigned)nTarget );
strncpy_s(line_.sTarget, ByteToHexStr(nTarget).c_str(), _TRUNCATE);
strncpy_s(line_.sTarget, ByteToHexStr((BYTE)nTarget).c_str(), _TRUNCATE);
if (nTarget == 0)
line_.sImmediateSignedDec[0] = 0; // nothing