ben         99/09/11 15:14:12

  Modified:    src/modules/standard mod_negotiation.c
  Log:
  Use return status instead of character value for EOF.
  
  Revision  Changes    Path
  1.5       +3 -2      apache-2.0/src/modules/standard/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /export/home/cvs/apache-2.0/src/modules/standard/mod_negotiation.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- mod_negotiation.c 1999/09/08 14:15:55     1.4
  +++ mod_negotiation.c 1999/09/11 22:14:11     1.5
  @@ -678,8 +678,9 @@
                * so that we will pick up the blank line the next time 'round.
                */
   
  -            while (c != EOF && c != '\n' && ap_isspace(c)) {
  -                ap_getc(map, &c);
  +            while (c != '\n' && ap_isspace(c)) {
  +                if(ap_getc(map, &c) != APR_SUCCESS)
  +                 break;
               }
   
               ap_ungetc(map, c);
  
  
  

Reply via email to