ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/tar TarInputStream.java
Date Mon, 28 Jan 2002 09:24:26 GMT
donaldp     02/01/28 01:24:26

  Modified:    proposal/myrmidon/src/java/org/apache/aut/tar
                        TarInputStream.java
  Log:
  Dont modify loop counters in for loops
  
  Revision  Changes    Path
  1.3       +2 -1      jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/tar/TarInputStream.java
  
  Index: TarInputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/aut/tar/TarInputStream.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TarInputStream.java	27 Jan 2002 01:24:59 -0000	1.2
  +++ TarInputStream.java	28 Jan 2002 09:24:26 -0000	1.3
  @@ -415,7 +415,8 @@
           // properly skip over bytes via the TarBuffer...
           //
           final byte[] skipBuf = new byte[ 8 * 1024 ];
  -        for( int num = numToSkip; num > 0; )
  +        int num = numToSkip;
  +        while( num > 0 )
           {
               final int count = ( num > skipBuf.length ) ? skipBuf.length : num;
               final int numRead = read( skipBuf, 0, count );
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message