forked from Telodendria/Telodendria
Fix visual bugs in MemoryHexDump()
This commit is contained in:
parent
5c5aab71d8
commit
d969f4d053
1 changed files with 6 additions and 1 deletions
|
@ -468,6 +468,9 @@ void
|
|||
}
|
||||
}
|
||||
|
||||
hexBuf[hI] = '\0';
|
||||
hI--;
|
||||
|
||||
while (hI < sizeof(hexBuf) - 2)
|
||||
{
|
||||
hexBuf[hI] = ' ';
|
||||
|
@ -483,6 +486,8 @@ void
|
|||
hexBuf[hI] = '\0';
|
||||
asciiBuf[aI] = '\0';
|
||||
|
||||
printFunc(pI - (pI % MEMORY_HEXDUMP_WIDTH), hexBuf, asciiBuf, args);
|
||||
printFunc(pI - ((pI % MEMORY_HEXDUMP_WIDTH) ?
|
||||
(pI % MEMORY_HEXDUMP_WIDTH) : MEMORY_HEXDUMP_WIDTH),
|
||||
hexBuf, asciiBuf, args);
|
||||
printFunc(pI, NULL, NULL, args);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue