rbb         01/01/22 17:05:43

  Modified:    buckets  apr_buckets_file.c
  Log:
  Fix some bugs in the latest file_read code.
  
  Revision  Changes    Path
  1.22      +1 -3      apr-util/buckets/apr_buckets_file.c
  
  Index: apr_buckets_file.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_file.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -d -b -w -u -r1.21 -r1.22
  --- apr_buckets_file.c        2001/01/22 23:33:58     1.21
  +++ apr_buckets_file.c        2001/01/23 01:05:42     1.22
  @@ -138,8 +138,6 @@
                   free(buf);
                   return rv;
               }
  -            /* Only need to do seek the first time through */
  -            a->offset = 0;
           }
           rv = apr_read(f, buf, len);
           if (rv != APR_SUCCESS && rv != APR_EOF) {
  @@ -156,7 +154,7 @@
   
           /* If we have more to read from the file, then create another bucket 
*/
           if (length > 0) {
  -            b = apr_bucket_create_file(f, (*len) + 1, length);
  +            b = apr_bucket_create_file(f, a->offset + (*len), length);
               APR_BUCKET_INSERT_AFTER(e, b);
           }
   #if APR_HAS_MMAP
  
  
  

Reply via email to