]> granicus.if.org Git - apache/commitdiff
Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 15 Dec 2013 10:37:06 +0000 (10:37 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 15 Dec 2013 10:37:06 +0000 (10:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551013 13f79535-47bb-0310-9956-ffa450edef68

server/util_ebcdic.c

index 1a8c0ba305066eb384af80f708500099e08ed3cc..7faae794de91f26fb0850c569369df60468e5de6 100644 (file)
@@ -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;