]> granicus.if.org Git - apache/commitdiff
remove another fixed buffer from the stack
authorAndré Malo <nd@apache.org>
Thu, 24 Jul 2003 22:48:17 +0000 (22:48 +0000)
committerAndré Malo <nd@apache.org>
Thu, 24 Jul 2003 22:48:17 +0000 (22:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100782 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index c6f097ec27615550a103679ec5c48d75c56d8ef7..c786e3afb8c21e8485c6a8e0b77aae18ff437430 100644 (file)
@@ -1082,7 +1082,6 @@ static int hook_uri2file(request_rec *r)
     const char *thisserver;
     char *thisport;
     const char *thisurl;
-    char buf[512];
     unsigned int port;
     int rulestatus;
 
@@ -1141,8 +1140,7 @@ static int hook_uri2file(request_rec *r)
         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);