httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@locus.apache.org
Subject cvs commit: httpd-apreq/c apache_multipart_buffer.c
Date Tue, 19 Dec 2000 00:21:58 GMT
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;
  
  
  

Mime
View raw message