apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwool...@apache.org
Subject cvs commit: apr-util/buckets apr_brigade.c
Date Sat, 29 Jun 2002 03:18:36 GMT
jwoolley    2002/06/28 20:18:36

  Modified:    buckets  apr_brigade.c
  Log:
  Fix apr_brigade_write() length miscalculation.
  
  Submitted by:  Brian Pane
  
  Revision  Changes    Path
  1.44      +1 -1      apr-util/buckets/apr_brigade.c
  
  Index: apr_brigade.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_brigade.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -d -u -r1.43 -r1.44
  --- apr_brigade.c	17 Jun 2002 04:49:34 -0000	1.43
  +++ apr_brigade.c	29 Jun 2002 03:18:36 -0000	1.44
  @@ -410,7 +410,7 @@
       if (!APR_BRIGADE_EMPTY(b) && APR_BUCKET_IS_HEAP(e)) {
           apr_bucket_heap *h = e->data;
   
  -        remaining = h->alloc_len - e->length;
  +        remaining = h->alloc_len - (e->length + e->start);
           buf = h->base + e->start + e->length;
       }
   
  
  
  

Mime
View raw message