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/filters mod_include.c
Date Sun, 02 Dec 2001 10:33:02 GMT
brianp      01/12/02 02:33:01

  Modified:    modules/filters mod_include.c
  Log:
  Exclude the terminating null byte from the length of
  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)
  
  Revision  Changes    Path
  1.161     +2 -2      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.160
  retrieving revision 1.161
  diff -u -r1.160 -r1.161
  --- mod_include.c	2001/12/01 05:38:23	1.160
  +++ mod_include.c	2001/12/02 10:33:01	1.161
  @@ -2859,7 +2859,7 @@
               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)) {
  @@ -3116,7 +3116,7 @@
   
   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,
  
  
  

Mime
View raw message