httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1777556 - /httpd/httpd/trunk/modules/cache/cache_util.c
Date Fri, 06 Jan 2017 09:56:53 GMT
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;
 }



Mime
View raw message