summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2001-12-16 00:45:31 +0000
committerBryce McKinlay <mckinlay@redhat.com>2001-12-16 00:45:31 +0000
commit1dbba87335fd5ac06e65c6bda70b4cbf9899b639 (patch)
treea01e322b9a7c8eb0f89e786ee68baf5438bdd216
parent98f0061ebcb2af920bacdba133df15870c8588c7 (diff)
downloadclasspath-1dbba87335fd5ac06e65c6bda70b4cbf9899b639.tar.gz
* java/io/DataOutputStream (write (byte[], int, int)): Update
"written" correctly. Fix from the ORP team.
-rw-r--r--ChangeLog5
-rw-r--r--java/io/DataOutputStream.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6af5ce94c..d45c1d1af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}
/*************************************************************************/