Fixed string out of bounds exception in hex viewer on os x.

This commit is contained in:
Jeff Wallace 2013-12-05 13:16:05 -05:00
parent 1f932aca22
commit ef61965acf

View File

@ -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) {