From: Daniel Ruggeri Date: Sun, 14 Apr 2013 15:47:53 +0000 (+0000) Subject: Part two of r1467523 X-Git-Tag: 2.5.0-alpha~5582 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c101dfe705924596268fec9b77ac8be3e41e5b4;p=apache Part two of r1467523 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1467792 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 84dd6d343a..cfac4d2620 100644 --- a/server/util.c +++ b/server/util.c @@ -2990,5 +2990,5 @@ AP_DECLARE(char *) ap_get_exec_line(apr_pool_t *p, buf[k] = '\0'; apr_file_close(fp); - return buf; + return apr_pstrndup(p, buf, k); }