From: Brian Pane Date: Sun, 2 Dec 2001 09:51:19 +0000 (+0000) Subject: Optimization: changed some apr_pstrndup calls to apr_pstrmemdup X-Git-Tag: 2.0.30~310 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38eb10579242d94bf80861f77bd3346f8677fb34;p=thirdparty%2Fapache%2Fhttpd.git Optimization: changed some apr_pstrndup calls to apr_pstrmemdup git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92282 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 574f0a9855c..d84bedb0bb5 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -453,7 +453,7 @@ static int read_request_line(request_rec *r) pro = "HTTP/0.9"; len = 8; } - r->protocol = apr_pstrndup(r->pool, pro, len); + r->protocol = apr_pstrmemdup(r->pool, pro, len); /* XXX ap_update_connection_status(conn->id, "Protocol", r->protocol); */ diff --git a/server/util_script.c b/server/util_script.c index 61d85d902c9..cc2d772186e 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -356,7 +356,7 @@ static char *original_uri(request_rec *r) ++last; /* end at next whitespace */ } - return apr_pstrndup(r->pool, first, last - first); + return apr_pstrmemdup(r->pool, first, last - first); } AP_DECLARE(void) ap_add_cgi_vars(request_rec *r)