Patch from Steve Beal to fix my bug in Context.readReader.
This commit is contained in:
igor%mir2.org 2003-06-11 13:27:23 +00:00
parent 0b2cfc988f
commit 31641ef33a

View File

@ -1829,7 +1829,7 @@ public class Context {
if (n < 0) { break; }
cursor += n;
if (cursor == buffer.length) {
char[] tmp = new char[buffer.length];
char[] tmp = new char[buffer.length * 2];
System.arraycopy(buffer, 0, tmp, 0, cursor);
buffer = tmp;
}