----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Here's the diff. I also found another problem in the skip case which is
fixed in this diff.

1669,1670c1670,1674
<      if ((length-- > 0) || (length == -1))
<        return in.read();
---
>    if ((length > 0) || (length == -1)) {
>      int i = in.read();
>      length -= i;
>      return i;
>    }
1681,1683c1685,1689
<      length -= len;
<      if (len > 0)
<        return in.read(b, 0, len);
---
>      if (len > 0) {
>        int i = in.read(b, 0, len);
>        length -= i;
>        return i;
>      }
1693,1695c1699,1703
<      length -= len;
<      if (len > 0)
<               return in.read(b,off,len);
---
>      if (len > 0) {
>        int i = in.read(b,off,len);
>        length -= i;
>        return i;
>      }
1705,1707c1713,1717
<      length -= n;
<      if (n > 0)
<               return in.skip(n);
---
>      if (n > 0) {
>        long i = in.skip(n);
>               length -= i;
>        return i;
>      }

Jon Smirl
[EMAIL PROTECTED]




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to