UnicodeToBytes.java (write): Write work buffer starting from zero offset.

* gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
	starting from zero offset.

From-SVN: r44997
This commit is contained in:
Jeff Sturm
2001-08-18 03:56:01 +00:00
committed by Jeff Sturm
parent ea0c0b6e1b
commit 8ff6222751
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ public abstract class UnicodeToBytes extends IOConverter
work = new char[inlength];
int srcEnd = inpos + (inlength > work.length ? work.length : inlength);
str.getChars(inpos, srcEnd, work, 0);
return write(work, inpos, inlength);
return write(work, 0, srcEnd - inpos);
}
/** Indicate that the converter is resuable.