httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: TEMP_DIR directive
Date Wed, 25 Jun 2003 00:29:53 GMT
Jay Buffington <jay@mlug.missouri.edu> writes:

[...]

> What gives?!

It's a bug in Request.xs: line 316. See if this patch fixes it:

Index: Request/Request.xs
===================================================================
RCS file: /home/cvs/httpd-apreq/Request/Request.xs,v
retrieving revision 1.35
diff -u -r1.35 Request.xs
--- Request/Request.xs  14 Apr 2003 02:45:24 -0000      1.35
+++ Request/Request.xs  25 Jun 2003 00:25:17 -0000
@@ -313,7 +313,7 @@

           case 't':
             if (strcaseEQ(key, "temp_dir")) {
-                RETVAL->temp_dir = (char *)SvPV(ST(i+1), PL_na);
+                RETVAL->temp_dir = apr_pstrdup(r->pool,SvPV(ST(i+1), PL_na));
                 break;
             }

-- 
Joe Schaefer


Mime
View raw message