strings passed to apr_hash_get/apr_hash_set (this matches
the convention used throughout the rest of the httpd,
and it saves a small amount of processing)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92283
13f79535-47bb-0310-9956-
ffa450edef68
handle_func =
(include_handler_fn_t *)apr_hash_get(include_hash,
ctx->combined_tag,
handle_func =
(include_handler_fn_t *)apr_hash_get(include_hash,
ctx->combined_tag,
- ctx->directive_length+1);
+ ctx->directive_length);
if (handle_func != NULL) {
rv = (*handle_func)(ctx, bb, r, f, dptr, &content_head);
if ((rv != 0) && (rv != 1)) {
if (handle_func != NULL) {
rv = (*handle_func)(ctx, bb, r, f, dptr, &content_head);
if ((rv != 0) && (rv != 1)) {
static void ap_register_include_handler(char *tag, include_handler_fn_t *func)
{
static void ap_register_include_handler(char *tag, include_handler_fn_t *func)
{
- apr_hash_set(include_hash, tag, strlen(tag) + 1, (const void *)func);
+ apr_hash_set(include_hash, tag, strlen(tag), (const void *)func);
}
static int include_post_config(apr_pool_t *p, apr_pool_t *plog,
}
static int include_post_config(apr_pool_t *p, apr_pool_t *plog,