diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2001-12-16 00:45:31 +0000 |
---|---|---|
committer | Bryce McKinlay <mckinlay@redhat.com> | 2001-12-16 00:45:31 +0000 |
commit | 1dbba87335fd5ac06e65c6bda70b4cbf9899b639 (patch) | |
tree | a01e322b9a7c8eb0f89e786ee68baf5438bdd216 | |
parent | 98f0061ebcb2af920bacdba133df15870c8588c7 (diff) | |
download | classpath-1dbba87335fd5ac06e65c6bda70b4cbf9899b639.tar.gz |
* java/io/DataOutputStream (write (byte[], int, int)): Update
"written" correctly. Fix from the ORP team.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/io/DataOutputStream.java | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2001-12-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz> + + * java/io/DataOutputStream (write (byte[], int, int)): Update + "written" correctly. Fix from the ORP team. + 2001-12-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/util/BitSet.java (and): Fix off-by-one bug, don't skip part of diff --git a/java/io/DataOutputStream.java b/java/io/DataOutputStream.java index f8ab4551b..dc979c4a6 100644 --- a/java/io/DataOutputStream.java +++ b/java/io/DataOutputStream.java @@ -503,7 +503,7 @@ public void write(byte[] buf, int offset, int len) throws IOException { out.write(buf, offset, len); - written += len - offset; + written += len; } /*************************************************************************/ |