aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io/DataInputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/io/DataInputStream.java')
-rw-r--r--libjava/java/io/DataInputStream.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/io/DataInputStream.java b/libjava/java/io/DataInputStream.java
index 6b4b1d7..b33cbe756b 100644
--- a/libjava/java/io/DataInputStream.java
+++ b/libjava/java/io/DataInputStream.java
@@ -277,16 +277,16 @@ public class DataInputStream extends FilterInputStream implements DataInput
* buffer
* @exception IOException If any other error occurs
*/
- public final void readFully (byte[] b, int off, int len) throws IOException
+ public final void readFully (byte[] buf, int offset, int len) throws IOException
{
while (len > 0)
{
// in.read will block until some data is available.
- int numread = in.read (b, off, len);
+ int numread = in.read (buf, offset, len);
if (numread < 0)
throw new EOFException ();
len -= numread;
- off += numread;
+ offset += numread;
}
}