From: André Malo Date: Thu, 24 Jul 2003 22:48:17 +0000 (+0000) Subject: remove another fixed buffer from the stack X-Git-Tag: pre_ajp_proxy~1365 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46fb97d0dbee97661a15b3861b68c71188226c0b;p=apache remove another fixed buffer from the stack git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100782 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index c6f097ec27..c786e3afb8 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -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);