Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 8381 invoked by uid 500); 2 Dec 2001 20:56:34 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 8370 invoked by uid 500); 2 Dec 2001 20:56:34 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 2 Dec 2001 20:38:33 -0000 Message-ID: <20011202203833.42322.qmail@icarus.apache.org> From: brianp@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/server util.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N brianp 01/12/02 12:38:33 Modified: server util.c Log: Optimization: replace apr_pstrndup() with apr_pstrmemdup() in ap_escape_html() to eliminate a redundant scan through the string. Revision Changes Path 1.117 +1 -1 httpd-2.0/server/util.c Index: util.c =================================================================== RCS file: /home/cvs/httpd-2.0/server/util.c,v retrieving revision 1.116 retrieving revision 1.117 diff -u -r1.116 -r1.117 --- util.c 2001/12/02 05:46:36 1.116 +++ util.c 2001/12/02 20:38:33 1.117 @@ -1649,7 +1649,7 @@ j += 4; if (j == 0) - return apr_pstrndup(p, s, i); + return apr_pstrmemdup(p, s, i); x = apr_palloc(p, i + j + 1); for (i = 0, j = 0; s[i] != '\0'; i++, j++)