From 46fb97d0dbee97661a15b3861b68c71188226c0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Thu, 24 Jul 2003 22:48:17 +0000 Subject: [PATCH] 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 --- modules/mappers/mod_rewrite.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.50.1