From d5e987b4e4302c66507be5609e05152c05edb173 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sun, 15 Dec 2013 10:37:06 +0000 Subject: [PATCH] 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 --- server/util_ebcdic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3