diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-21 05:52:14 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-03-21 05:52:14 +0000 |
commit | 800abb08ada302592cbba410ce8c88d7129522bf (patch) | |
tree | d8e7cbd5a62dba169d6435b8d227da14e63f5fa6 /threadproc/win32 | |
parent | 59f1f7ef9a4c17155e176c3c9ca281837cf818ea (diff) | |
download | libapr-800abb08ada302592cbba410ce8c88d7129522bf.tar.gz |
Now fix my typos ... teach me to trust my typing at midnight without
compiling at least once.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63173 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32')
-rw-r--r-- | threadproc/win32/proc.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c index f4ea33483..40fb5a70a 100644 --- a/threadproc/win32/proc.c +++ b/threadproc/win32/proc.c @@ -295,7 +295,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, char *pEnvBlock; PROCESS_INFORMATION pi; DWORD dwCreationFlags = 0; - char *ch; + const char *ch; new->in = attr->parent_in; new->err = attr->parent_err; @@ -338,13 +338,16 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, i = 1; while (args && args[i]) { for (ch = args[i]; *ch; ++ch) { - if (apr_iswhite(*ch)) { + if (isspace(*ch)) { break; + } } - if (*ch) + if (*ch) { cmdline = apr_pstrcat(pool, cmdline, " \"", args[i], "\"", NULL); - else + } + else { cmdline = apr_pstrcat(pool, cmdline, " ", args[i], NULL); + } i++; } @@ -361,10 +364,11 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, else { progname = shellcmd; for (ch = shellcmd; *ch; ++ch) { - if (apr_iswhite(*ch)) { + if (isspace(*ch)) { break; + } } - if (*ch) + if (*ch) { shellcmd = apr_pstrcat(pool, "\"", shellcmd, "\"", NULL); } } |