httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1551013 - /httpd/httpd/trunk/server/util_ebcdic.c
Date Sun, 15 Dec 2013 10:37:06 GMT
Author: jailletc36
Date: Sun Dec 15 10:37:06 2013
New Revision: 1551013

URL: http://svn.apache.org/r1551013
Log:
Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable

Modified:
    httpd/httpd/trunk/server/util_ebcdic.c

Modified: httpd/httpd/trunk/server/util_ebcdic.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_ebcdic.c?rev=1551013&r1=1551012&r2=1551013&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_ebcdic.c (original)
+++ httpd/httpd/trunk/server/util_ebcdic.c Sun Dec 15 10:37:06 2013
@@ -102,7 +102,7 @@ int ap_rvputs_proto_in_ascii(request_rec
         if (s == NULL)
             break;
         len = strlen(s);
-        ascii_s = apr_pstrndup(r->pool, s, len);
+        ascii_s = apr_pstrmemdup(r->pool, s, len);
         ap_xlate_proto_to_ascii(ascii_s, len);
         if (ap_rputs(ascii_s, r) < 0)
             return -1;



Mime
View raw message