summaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-18 03:56:01 +0000
committerjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-18 03:56:01 +0000
commit5ed737cc6024cfd8bf5babbd7f542d36ded7d2a7 (patch)
tree98f1c6335f529d14d8d3fe02b7ac699a54f0b932 /libjava/gnu
parente3e68d5655b64430dd340b97fab307e10edb1966 (diff)
downloadgcc-5ed737cc6024cfd8bf5babbd7f542d36ded7d2a7.tar.gz
* gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
starting from zero offset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu')
-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 858be11f674..8181cb83109 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.