ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters TailFilter.java
Date Mon, 04 Mar 2002 22:17:26 GMT
umagesh     02/03/04 14:17:26

  Modified:    proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters
                        TailFilter.java
  Log:
  null check.
  
  Revision  Changes    Path
  1.8       +2 -1      jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters/TailFilter.java
  
  Index: TailFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters/TailFilter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TailFilter.java	28 Feb 2002 18:23:37 -0000	1.7
  +++ TailFilter.java	4 Mar 2002 22:17:26 -0000	1.8
  @@ -151,7 +151,8 @@
   
                       if (linesRead == lines) {
                           int i = 0;
  -                        for (i = returnedCharPos + 1; buffer[i] != '\n'; i++) {
  +                        for (i = returnedCharPos + 1;
  +                                buffer[i] != 0 && buffer[i] != '\n'; i++) {
                           }
                           returnedCharPos = i;
                           --linesRead;
  
  
  

--
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