From: Greg Stein Date: Mon, 12 Feb 2001 02:55:52 +0000 (+0000) Subject: *) rename apr_memdup() to apr_pmemdup() X-Git-Tag: 2.0.11~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9da83980c9746664e9bbd2d2c6fcdfc7db74bb2;p=apache *) rename apr_memdup() to apr_pmemdup() *) optimize the allocation size in apr_pstrndup() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88104 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/tls/mod_tls.c b/modules/tls/mod_tls.c index 90b921789e..04c8858568 100644 --- a/modules/tls/mod_tls.c +++ b/modules/tls/mod_tls.c @@ -267,7 +267,7 @@ static apr_status_t tls_in_filter(ap_filter_t *f,apr_bucket_brigade *pbbOut, apr_bucket *pbktOut; char *pbuf; - pbuf=apr_memdup(pCtx->pInputFilter->c->pool,buf,n); + pbuf=apr_pmemdup(pCtx->pInputFilter->c->pool,buf,n); // XXX: should we use a heap bucket instead? Or a transient (in // which case we need a separate brigade for each bucket)? pbktOut=apr_bucket_pool_create(pbuf,n,pCtx->pInputFilter->c->pool);