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

View file

@ -1,3 +1,8 @@
2001-08-17 Jeff Sturm <jsturm@one-point.com>
* gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
starting from zero offset.
2001-08-17 Hans-J. Boehm <Hans_Boehm@hp.com>
* boehm.cc: Include gc_local_alloc.h if appropriate.

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.