mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Fixed string out of bounds exception in hex viewer on os x.
This commit is contained in:
parent
1f932aca22
commit
ef61965acf
@ -102,7 +102,7 @@ public class DataConversion {
|
|||||||
outputStringBuilder.append(" ");
|
outputStringBuilder.append(" ");
|
||||||
|
|
||||||
// print the ascii columns
|
// print the ascii columns
|
||||||
String ascii = new String(array, curOffset, lineLen);
|
String ascii = new String(array, curOffset, lineLen, java.nio.charset.StandardCharsets.US_ASCII);
|
||||||
for (int i = 0; i < 16; i++) {
|
for (int i = 0; i < 16; i++) {
|
||||||
char c = ' ';
|
char c = ' ';
|
||||||
if (i < lineLen) {
|
if (i < lineLen) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user