Commit 188cd44d by David Daney Committed by David Daney

BufferedInputStream.java (skip): Return zero on EOF.

2004-11-17  David Daney  <ddaney@avtrex.com>

	* java/io/BufferedInputStream.java (skip): Return zero on EOF.

From-SVN: r90832
parent 07d05ffd
2004-11-17 David Daney <ddaney@avtrex.com>
* java/io/BufferedInputStream.java (skip): Return zero on EOF.
2004-11-17 Michael Koch <konqueror@gmx.de>
* java/net/Socket.java (getPort): Return 0 in error case.
......
......@@ -321,7 +321,7 @@ public class BufferedInputStream extends FilterInputStream
if (n < origN)
break;
else
return -1; // No bytes were read before EOF.
return 0; // No bytes were read before EOF.
int numread = (int) Math.min((long) (count - pos), n);
pos += numread;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment