httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Thu, 24 Jul 2003 22:48:17 GMT
nd          2003/07/24 15:48:17

  Modified:    modules/mappers mod_rewrite.c
  Log:
  remove another fixed buffer from the stack
  
  Revision  Changes    Path
  1.175     +1 -3      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.174
  retrieving revision 1.175
  diff -u -r1.174 -r1.175
  --- mod_rewrite.c	24 Jul 2003 22:24:40 -0000	1.174
  +++ mod_rewrite.c	24 Jul 2003 22:48:17 -0000	1.175
  @@ -1082,7 +1082,6 @@
       const char *thisserver;
       char *thisport;
       const char *thisurl;
  -    char buf[512];
       unsigned int port;
       int rulestatus;
   
  @@ -1141,8 +1140,7 @@
           thisport = "";
       }
       else {
  -        apr_snprintf(buf, sizeof(buf), ":%u", port);
  -        thisport = buf;
  +        thisport = apr_psprintf(r->pool, ":%u", port);
       }
       thisurl = apr_table_get(r->subprocess_env, ENVVAR_SCRIPT_URL);
   
  
  
  

Mime
View raw message