httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwool...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_include.c
Date Mon, 23 Jul 2001 13:45:44 GMT
jwoolley    01/07/23 06:45:44

  Modified:    modules/filters mod_include.c
  Log:
  The bucket should be created with the size of the data NOT including a null
  terminator as its length.  Otherwise, the bucket length value is wrong (too big
  by one).
  
  Revision  Changes    Path
  1.114     +1 -1      httpd-2.0/modules/filters/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v
  retrieving revision 1.113
  retrieving revision 1.114
  diff -u -r1.113 -r1.114
  --- mod_include.c	2001/07/23 11:50:11	1.113
  +++ mod_include.c	2001/07/23 13:45:44	1.114
  @@ -914,7 +914,7 @@
                       tmp_buck = apr_bucket_heap_create(echo_text, e_len, 1, &e_wrt);
                   }
                   else {
  -                    tmp_buck = apr_bucket_immortal_create("(none)", sizeof("(none)"));
  +                    tmp_buck = apr_bucket_immortal_create("(none)", sizeof("(none)")-1);
                   }
                   APR_BUCKET_INSERT_BEFORE(head_ptr, tmp_buck);
                   if (*inserted_head == NULL) {
  
  
  

Mime
View raw message