diff options
author | jfrijters <jfrijters> | 2010-10-11 18:48:40 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2010-10-11 18:48:40 +0400 |
commit | 4377152343490354bb0aeda0b8d2a72403b2080f (patch) | |
tree | 02cd100b72990f514f2b632420dc0e6703c55a9b /openjdk/java/net | |
parent | 536540cf6e81dc1ab58feacfaa06ed6e2428693a (diff) |
Fixed regression. SocketInputStream.read() ignored the offset into the byte array.
Diffstat (limited to 'openjdk/java/net')
-rw-r--r-- | openjdk/java/net/SocketInputStream.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openjdk/java/net/SocketInputStream.java b/openjdk/java/net/SocketInputStream.java index 0346864b..41424cce 100644 --- a/openjdk/java/net/SocketInputStream.java +++ b/openjdk/java/net/SocketInputStream.java @@ -125,7 +125,7 @@ class SocketInputStream extends FileInputStream } } - nread = recv(fd, bufP, len, 0); + nread = recv(fd, bufP, off, len, 0); if (nread > 0) { // ok } else { |