apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/file_io/os2 readwrite.c
Date Thu, 23 Aug 2001 02:01:47 GMT
bjh         01/08/22 19:01:47

  Modified:    file_io/os2 readwrite.c
  Log:
  OS/2: change apr_file_gets() to leave the trailing \n on the string, matching
  the output of the unix version. While I think it's dumb behaviour (I get sick
  of removing it again in application code) at least it's consistently dumb :)
  
  Revision  Changes    Path
  1.45      +3 -1      apr/file_io/os2/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/os2/readwrite.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- readwrite.c	2001/08/18 09:19:25	1.44
  +++ readwrite.c	2001/08/23 02:01:47	1.45
  @@ -328,8 +328,10 @@
           
           if (str[i] == '\r' || str[i] == '\x1A')
               i--;
  -        else if (str[i] == '\n')
  +        else if (str[i] == '\n') {
  +            i++;
               break;
  +        }
       }
       str[i] = 0;
       return rv;
  
  
  

Mime
View raw message