Skip to content

Commit

Permalink
Doh (#6)
Browse files Browse the repository at this point in the history
Lost in refactoring?
  • Loading branch information
alexarchambault authored Aug 12, 2021
1 parent b41db90 commit d8ece60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static String fromC(byte[] data) {
}
byte[] data0 = data;
if (remove > 0)
data0 = Arrays.copyOf(data, data.length - 1);
data0 = Arrays.copyOf(data, data.length - remove);
return new String(data0, Charset.defaultCharset());
}

Expand Down

0 comments on commit d8ece60

Please sign in to comment.