httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: httpd-2.0/server protocol.c
Date Mon, 13 Sep 2004 15:34:59 GMT
jorton      2004/09/13 08:34:59

  Modified:    server   protocol.c
  Log:
  * server/protocol.c (ap_rgetline_core): Fix off-by-one.
  
  Revision  Changes    Path
  1.152     +1 -1      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.151
  retrieving revision 1.152
  diff -d -w -u -r1.151 -r1.152
  --- protocol.c	1 Sep 2004 12:24:48 -0000	1.151
  +++ protocol.c	13 Sep 2004 15:34:59 -0000	1.152
  @@ -254,7 +254,7 @@
                   if (*s) {
                       /* ensure this string is terminated */
                       if (bytes_handled < n) {
  -                        (*s)[bytes_handled] = '\0';
  +                        (*s)[bytes_handled-1] = '\0';
                       }
                       else {
                           (*s)[n-1] = '\0';
  
  
  

Mime
View raw message