httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject cvs commit: apachen/src/main http_request.c
Date Wed, 15 Oct 1997 00:15:14 GMT
dgaudet     97/10/14 17:15:14

  Modified:    src/main http_request.c
  Log:
  Fix an off-by-one error introduced in one of the directory_walk optimizations.
  
  Reviewed by:	Jim Jagielski, Rob Hartill
  
  Revision  Changes    Path
  1.89      +3 -1      apachen/src/main/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/main/http_request.c,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- http_request.c	1997/10/07 05:27:08	1.88
  +++ http_request.c	1997/10/15 00:15:13	1.89
  @@ -364,8 +364,10 @@
        * We will use test_dirname as scratch space while we build directory
        * names during the walk.  Profiling shows directory_walk to be a busy
        * function so we try to avoid allocating lots of extra memory here.
  +     * We need 2 extra bytes, one for trailing \0 and one because
  +     * make_dirstr_prefix will add potentially one extra /.
        */
  -    test_dirname = palloc(r->pool, test_filename_len + 1);
  +    test_dirname = palloc(r->pool, test_filename_len + 2);
   
       /* j keeps track of which section we're on, see core_reorder_directories */
       j = 0;
  
  
  

Mime
View raw message