Skip to content

Commit

Permalink
Fix 16LE strings reading too much
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Dec 22, 2024
1 parent 1685dd1 commit 94b8c41
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public byte[] readUnterminatedStringRaw8(int start, int length) {
}

public byte[] readUnterminatedStringRaw16LE(int start, int length) {
length /= 2;
var bytes = new byte[length];
for (int i = 0; i < length; i++) {
bytes[i] = this.buffer.get(start + i * 2);
Expand Down

0 comments on commit 94b8c41

Please sign in to comment.