httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgi.c mod_cgid.c
Date Wed, 26 Dec 2001 08:58:56 GMT
brianp      01/12/26 00:58:55

  Modified:    modules/generators mod_cgi.c mod_cgid.c
  Log:
  Fixed calculation of bucket lengths
  
  Revision  Changes    Path
  1.114     +2 -4      httpd-2.0/modules/generators/mod_cgi.c
  
  Index: mod_cgi.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgi.c,v
  retrieving revision 1.113
  retrieving revision 1.114
  diff -u -r1.113 -r1.114
  --- mod_cgi.c	2001/12/13 17:22:20	1.113
  +++ mod_cgi.c	2001/12/26 08:58:55	1.114
  @@ -799,13 +799,11 @@
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp_buck);
           tmp2_buck = apr_bucket_heap_create(location, len_loc, 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
  -        /* XXX: this looks like a bug: should be sizeof - 1 */
  -        tmp2_buck = apr_bucket_immortal_create("\">", sizeof("\">"));
  +        tmp2_buck = apr_bucket_immortal_create("\">", sizeof("\">") - 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
           tmp2_buck = apr_bucket_heap_create(location, len_loc, 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
  -        /* XXX: this looks like a bug: should be sizeof - 1 */
  -        tmp2_buck = apr_bucket_immortal_create("</A>", sizeof("</A>"));
  +        tmp2_buck = apr_bucket_immortal_create("</A>", sizeof("</A>") - 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
   
           if (*inserted_head == NULL) {
  
  
  
  1.107     +2 -4      httpd-2.0/modules/generators/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- mod_cgid.c	2001/12/13 17:22:20	1.106
  +++ mod_cgid.c	2001/12/26 08:58:55	1.107
  @@ -1118,13 +1118,11 @@
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp_buck);
           tmp2_buck = apr_bucket_heap_create(location, len_loc, 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
  -        /* XXX: this looks like a bug: should be sizeof - 1 */
  -        tmp2_buck = apr_bucket_immortal_create("\">", sizeof("\">"));
  +        tmp2_buck = apr_bucket_immortal_create("\">", sizeof("\">") - 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
           tmp2_buck = apr_bucket_heap_create(location, len_loc, 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
  -        /* XXX: this looks like a bug: should be sizeof - 1 */
  -        tmp2_buck = apr_bucket_immortal_create("</A>", sizeof("</A>"));
  +        tmp2_buck = apr_bucket_immortal_create("</A>", sizeof("</A>") - 1);
           APR_BUCKET_INSERT_BEFORE(head_ptr, tmp2_buck);
   
           if (*inserted_head == NULL) {
  
  
  

Mime
View raw message