From cvs-return-1468-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Wed Jun 20 19:50:36 2001 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 32904 invoked by uid 500); 20 Jun 2001 19:50:33 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 32727 invoked by uid 1066); 20 Jun 2001 19:50:31 -0000 Date: 20 Jun 2001 19:50:31 -0000 Message-ID: <20010620195031.32726.qmail@apache.org> From: dougm@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/strings apr_strings.c dougm 01/06/20 12:50:31 Modified: strings apr_strings.c Log: make termination of apr_pstrcat-ed string a bit faster (from jeff trawick) Revision Changes Path 1.15 +2 -1 apr/strings/apr_strings.c Index: apr_strings.c =================================================================== RCS file: /home/cvs/apr/strings/apr_strings.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- apr_strings.c 2001/06/19 20:40:22 1.14 +++ apr_strings.c 2001/06/20 19:50:29 1.15 @@ -130,7 +130,6 @@ res = (char *) apr_palloc(a, len + 1); cp = res; - *(cp + len) = '\0'; /* Pass two --- copy the argument strings into the result space */ @@ -145,6 +144,8 @@ va_end(adummy); /* Return the result string */ + + *cp = '\0'; return res; }