DataOutputStream (write (byte[], int, int)): Update "written" correctly.

* java/io/DataOutputStream (write (byte[], int, int)): Update
	"written" correctly. Fix from the ORP team.

From-SVN: r48050
This commit is contained in:
Bryce McKinlay 2001-12-16 00:14:57 +00:00 committed by Bryce McKinlay
parent f79a65c087
commit 1e2bba3565
2 changed files with 6 additions and 1 deletions

View file

@ -48,7 +48,7 @@ public class DataOutputStream extends FilterOutputStream implements DataOutput
throws IOException, NullPointerException, IndexOutOfBoundsException
{
out.write(b, off, len);
written += len - off;
written += len;
}
public final void writeBoolean (boolean v) throws IOException