tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_worker_ajp13.c
Date Mon, 16 Feb 2004 08:34:10 GMT
hgomez      2004/02/16 00:34:10

  Modified:    jk/native2/common jk_worker_ajp13.c
  Log:
  Fix BR 8968 with long URI.
  
  BTW, we should handled this better since URI with more than 64 chars
  may be common...
  
  Revision  Changes    Path
  1.55      +2 -0      jakarta-tomcat-connectors/jk/native2/common/jk_worker_ajp13.c
  
  Index: jk_worker_ajp13.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_worker_ajp13.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- jk_worker_ajp13.c	13 Feb 2004 08:40:41 -0000	1.54
  +++ jk_worker_ajp13.c	16 Feb 2004 08:34:09 -0000	1.55
  @@ -591,6 +591,8 @@
   
       /* XXX configurable ? */
       strncpy( e->stats->active, s->req_uri, 64);
  +    /* Be sure this is null terminated if it's a long url */
  +    e->stats->active[63] = '\0';
       
       /* Prepare the messages we'll use.*/ 
       e->request->reset( env, e->request );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message