summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorjailletc36 <jailletc36@13f79535-47bb-0310-9956-ffa450edef68>2015-10-24 05:45:35 +0000
committerjailletc36 <jailletc36@13f79535-47bb-0310-9956-ffa450edef68>2015-10-24 05:45:35 +0000
commit6e13a47d3464b4d94b15ecb91a82e695e0135ef5 (patch)
tree5da87d498addab381e9166fa9001c1c64a5b801a /threadproc
parentd9d91fe33592acfea378566ec0be0a19f979f489 (diff)
downloadlibapr-6e13a47d3464b4d94b15ecb91a82e695e0135ef5.tar.gz
Backport r1710307
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1710308 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/win32/proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c
index c9fa4dd92..b4dfd5f85 100644
--- a/threadproc/win32/proc.c
+++ b/threadproc/win32/proc.c
@@ -486,7 +486,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
* XXX progname must be NULL if this is a 16 bit app running in WOW
*/
if (progname[0] == '\"') {
- progname = apr_pstrndup(pool, progname + 1, strlen(progname) - 2);
+ progname = apr_pstrmemdup(pool, progname + 1, strlen(progname) - 2);
}
if (attr->cmdtype == APR_PROGRAM || attr->cmdtype == APR_PROGRAM_ENV) {
@@ -546,7 +546,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
return APR_EINVAL;
}
if (shellcmd[0] == '"') {
- progname = apr_pstrndup(pool, shellcmd + 1, strlen(shellcmd) - 2);
+ progname = apr_pstrmemdup(pool, shellcmd + 1, strlen(shellcmd) - 2);
}
else {
progname = shellcmd;
@@ -588,7 +588,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
return APR_EINVAL;
}
if (shellcmd[0] == '"') {
- progname = apr_pstrndup(pool, shellcmd + 1, strlen(shellcmd) - 2);
+ progname = apr_pstrmemdup(pool, shellcmd + 1, strlen(shellcmd) - 2);
}
else {
progname = shellcmd;