Fix hex printing of non-16-byte multiple data.

This commit is contained in:
2020-01-30 21:51:04 +00:00
parent 0fb1781ca2
commit 0f4820e123

View File

@@ -61,6 +61,9 @@ namespace DiscImageChef
int offsetLength = $"{array.Length:X}".Length;
var sb = new StringBuilder();
if(last > 0)
rows++;
if(last == 0)
last = 16;
@@ -119,7 +122,7 @@ namespace DiscImageChef
for(int j = 0; j < lastBytes; j++)
{
int v = array[b];
sb.Append(v > 31 && v < 127 || v > 159 ? (char)v : '.');
sb.Append((v > 31 && v < 127) || v > 159 ? (char)v : '.');
b++;
}