From: Christophe Jaillet Date: Sun, 15 Dec 2013 10:37:06 +0000 (+0000) Subject: Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5e987b4e4302c66507be5609e05152c05edb173;p=thirdparty%2Fapache%2Fhttpd.git Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551013 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_ebcdic.c b/server/util_ebcdic.c index 1a8c0ba3050..7faae794de9 100644 --- a/server/util_ebcdic.c +++ b/server/util_ebcdic.c @@ -102,7 +102,7 @@ int ap_rvputs_proto_in_ascii(request_rec *r, ...) 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;