minor hex_dump() formatting bug fix to properly align ascii remainder output

This commit is contained in:
Michael Rash
2013-11-14 22:55:51 -05:00
parent cb2fc3abbe
commit 63568d061b
2 changed files with 4 additions and 0 deletions

View File

@@ -62,6 +62,8 @@ hex_dump(const unsigned char *data, const int size)
{
for(i=0; i < 16-ln; i++)
printf(" ");
if(ln < 8)
printf(" ");
printf(" %s\n\n", ascii_str);
}