pass start and end indexes to String.getChars in Writer.write, not start and length

This commit is contained in:
Joel Dice 2009-08-13 08:55:35 -06:00
parent 42622d0d25
commit 58e3c3013a

View File

@ -26,7 +26,7 @@ public abstract class Writer {
public void write(String s, int offset, int length) throws IOException {
char[] b = new char[length];
s.getChars(offset, length, b, 0);
s.getChars(offset, offset + length, b, 0);
write(b);
}