jimw        00/12/18 16:21:58

  Modified:    c        apache_multipart_buffer.c
  Log:
  whoops, wrote len-- when --len was the right thing to do.
  Submitted by: David Welton
  
  Revision  Changes    Path
  1.3       +1 -1      httpd-apreq/c/apache_multipart_buffer.c
  
  Index: apache_multipart_buffer.c
  ===================================================================
  RCS file: /home/cvs/httpd-apreq/c/apache_multipart_buffer.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- apache_multipart_buffer.c 2000/12/17 00:36:38     1.2
  +++ apache_multipart_buffer.c 2000/12/19 00:21:57     1.3
  @@ -289,7 +289,7 @@
        /* copy the data */
        memcpy(buf, self->buf_begin, len);
        buf[len] = 0;
  -     if(bound && len > 0 && buf[len-1] == '\r') buf[len--] = 0;
  +     if(bound && len > 0 && buf[len-1] == '\r') buf[--len] = 0;
   
        /* update the buffer */
        self->bytes_in_buffer -= len;
  
  
  

Reply via email to