* gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
starting from zero offset.
From-SVN: r44997
+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.
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.