aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/convert/UnicodeToBytes.java
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2001-08-18 03:56:01 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2001-08-18 03:56:01 +0000
commit8ff62227514896471cfb3a6ce27bf31c37442b7f (patch)
tree98f1c6335f529d14d8d3fe02b7ac699a54f0b932 /libjava/gnu/gcj/convert/UnicodeToBytes.java
parentea0c0b6e1b3757fd5d86822bde108a613e697c4a (diff)
downloadgcc-8ff62227514896471cfb3a6ce27bf31c37442b7f.zip
gcc-8ff62227514896471cfb3a6ce27bf31c37442b7f.tar.gz
gcc-8ff62227514896471cfb3a6ce27bf31c37442b7f.tar.bz2
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
Diffstat (limited to 'libjava/gnu/gcj/convert/UnicodeToBytes.java')
-rw-r--r--libjava/gnu/gcj/convert/UnicodeToBytes.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/gnu/gcj/convert/UnicodeToBytes.java b/libjava/gnu/gcj/convert/UnicodeToBytes.java
index 858be11..8181cb8 100644
--- a/libjava/gnu/gcj/convert/UnicodeToBytes.java
+++ b/libjava/gnu/gcj/convert/UnicodeToBytes.java
@@ -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.