httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_autoindex.c
Date Wed, 25 Jul 2001 21:47:20 GMT
wrowe       01/07/25 14:47:20

  Modified:    modules/generators mod_autoindex.c
  Log:
    More signedness fixes
  
  Revision  Changes    Path
  1.68      +4 -3      httpd-2.0/modules/generators/mod_autoindex.c
  
  Index: mod_autoindex.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_autoindex.c,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- mod_autoindex.c	2001/07/25 21:34:15	1.67
  +++ mod_autoindex.c	2001/07/25 21:47:20	1.68
  @@ -913,8 +913,8 @@
   static void do_emit_plain(request_rec *r, apr_file_t *f)
   {
       char buf[AP_IOBUFSIZE + 1];
  -    int i, c, ch;
  -    apr_size_t n;
  +    int ch;
  +    apr_size_t i, c, n;
       apr_status_t stat;
   
       ap_rputs("<PRE>\n", r);
  @@ -924,7 +924,8 @@
   	    stat = apr_file_read(f, buf, &n);
   	}
   	while (stat != APR_SUCCESS && APR_STATUS_IS_EINTR(stat));
  -	if (n == -1 || n == 0) {
  +	if (n == 0 || stat != APR_SUCCESS) {
  +            /* ###: better error here? */
   	    break;
   	}
   	buf[n] = '\0';
  
  
  

Mime
View raw message