From 58e3c3013a4ac0d143a3c4cd461e3bb4bb8d3669 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 13 Aug 2009 08:55:35 -0600 Subject: [PATCH] pass start and end indexes to String.getChars in Writer.write, not start and length --- classpath/java/io/Writer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/io/Writer.java b/classpath/java/io/Writer.java index f13f4e4b98..680a307cb8 100644 --- a/classpath/java/io/Writer.java +++ b/classpath/java/io/Writer.java @@ -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); }