From 38eb10579242d94bf80861f77bd3346f8677fb34 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Sun, 2 Dec 2001 09:51:19 +0000 Subject: [PATCH] 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 --- server/protocol.c | 2 +- server/util_script.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/protocol.c b/server/protocol.c index 574f0a9855..d84bedb0bb 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 61d85d902c..cc2d772186 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) -- 2.50.1