Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/org/jcodings/transcode/EConv.java
Original file line number Diff line number Diff line change
@@ -622,10 +622,7 @@ public int insertOutput(byte[] str, int strP, int strLen, byte[] strEncoding) {
buf = new Buffer();
buf.allocate(need);
} else if (buf.bytes == null) {
buf.bytes = new byte[need];
buf.dataStart = 0;
buf.dataEnd = 0;
buf.bufEnd = need;
buf.allocate(need);
} else if ((buf.bufEnd - buf.dataEnd) < need) {
// try to compact buffer by moving data portion back to bufStart
System.arraycopy(buf.bytes, buf.dataStart, buf.bytes, buf.bufStart, buf.dataEnd - buf.dataStart);

0 comments on commit 64e5fb3

Please sign in to comment.