]> granicus.if.org Git - apache/commitdiff
Related to Brian's commit to fix the XXX comments I'd added a while back.
authorCliff Woolley <jwoolley@apache.org>
Wed, 26 Dec 2001 17:31:48 +0000 (17:31 +0000)
committerCliff Woolley <jwoolley@apache.org>
Wed, 26 Dec 2001 17:31:48 +0000 (17:31 +0000)
These lines were broken too, I just hadn't commented them.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92609 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgi.c
modules/generators/mod_cgid.c

index 53ccaafd6811c620a9622e3418742c01cd34bf4f..f37db05feedfb9fd0fe367fcb2ec35f8736ca1d9 100644 (file)
@@ -795,7 +795,8 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next,
          * it'd be more efficient to pstrcat it into a single pool buffer
          * and a single pool bucket */
 
-        tmp_buck = apr_bucket_immortal_create("<A HREF=\"", sizeof("<A HREF=\""));
+        tmp_buck = apr_bucket_immortal_create("<A HREF=\"",
+                                              sizeof("<A HREF=\"") - 1);
         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);
index c4fb1d7620c1dfdeb3d81c191be0c149c3794b4d..842a5ee41690600685b1add0aab43262cbb72b85 100644 (file)
@@ -1114,7 +1114,8 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next,
          * it'd be more efficient to pstrcat it into a single pool buffer
          * and a single pool bucket */
 
-        tmp_buck = apr_bucket_immortal_create("<A HREF=\"", sizeof("<A HREF=\""));
+        tmp_buck = apr_bucket_immortal_create("<A HREF=\"",
+                                              sizeof("<A HREF=\"") - 1);
         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);