mirror of
https://github.com/AppleCommander/applesingle.git
synced 2024-06-27 14:29:31 +00:00
AppleSingle entry can have a length of 0. Adjusting how 0 byte entries
are reported.
This commit is contained in:
parent
0651919ca0
commit
ea58bc88f8
|
@ -51,7 +51,6 @@ public class HexDumper {
|
||||||
char ch = ' ';
|
char ch = ' ';
|
||||||
if (i < data.length) {
|
if (i < data.length) {
|
||||||
byte b = data[i];
|
byte b = data[i];
|
||||||
//ch = (Character.isISOControl(Byte.toUnsignedInt(b))) ? '.' : (char)b;
|
|
||||||
ch = (b >= ' ' && Byte.toUnsignedInt(b) < 0x7f) ? (char)b : '.';
|
ch = (b >= ' ' && Byte.toUnsignedInt(b) < 0x7f) ? (char)b : '.';
|
||||||
}
|
}
|
||||||
ps.printf("%c", ch);
|
ps.printf("%c", ch);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user