mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Patch from Steve Beal to fix my bug in Context.readReader.
This commit is contained in:
parent
0b2cfc988f
commit
31641ef33a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user