Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C2838200BF4 for ; Fri, 6 Jan 2017 10:56:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C108E160B37; Fri, 6 Jan 2017 09:56:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0ED3D160B1F for ; Fri, 6 Jan 2017 10:56:54 +0100 (CET) Received: (qmail 34393 invoked by uid 500); 6 Jan 2017 09:56:54 -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: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 34383 invoked by uid 99); 6 Jan 2017 09:56:54 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jan 2017 09:56:54 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id B76A53A002C for ; Fri, 6 Jan 2017 09:56:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1777556 - /httpd/httpd/trunk/modules/cache/cache_util.c Date: Fri, 06 Jan 2017 09:56:53 -0000 To: cvs@httpd.apache.org From: jailletc36@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170106095653.B76A53A002C@svn01-us-west.apache.org> archived-at: Fri, 06 Jan 2017 09:56:55 -0000 Author: jailletc36 Date: Fri Jan 6 09:56:53 2017 New Revision: 1777556 URL: http://svn.apache.org/viewvc?rev=1777556&view=rev Log: Use apr_pstrmemdup instead of apr_pstrndup when applicable Modified: httpd/httpd/trunk/modules/cache/cache_util.c Modified: httpd/httpd/trunk/modules/cache/cache_util.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_util.c?rev=1777556&r1=1777555&r2=1777556&view=diff ============================================================================== --- httpd/httpd/trunk/modules/cache/cache_util.c (original) +++ httpd/httpd/trunk/modules/cache/cache_util.c Fri Jan 6 09:56:53 2017 @@ -809,7 +809,7 @@ CACHE_DECLARE(const char *)ap_cache_toks *str = s; if (i) - return apr_pstrndup(p, list, i); + return apr_pstrmemdup(p, list, i); else return NULL; }