Commit 1c6b4e2d authored by Cliff Woolley's avatar Cliff Woolley
Browse files

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).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89654 13f79535-47bb-0310-9956-ffa450edef68
parent 738d9c16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -914,7 +914,7 @@ static int handle_echo(include_ctx_t *ctx, apr_bucket_brigade **bb, request_rec
                    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) {