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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user