wrowe 02/03/20 21:52:14
Modified: threadproc/win32 proc.c
Log:
Now fix my typos ... teach me to trust my typing at midnight without
compiling at least once.
Revision Changes Path
1.69 +10 -6 apr/threadproc/win32/proc.c
Index: proc.c
===================================================================
RCS file: /home/cvs/apr/threadproc/win32/proc.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- proc.c 21 Mar 2002 05:48:26 -0000 1.68
+++ proc.c 21 Mar 2002 05:52:14 -0000 1.69
@@ -295,7 +295,7 @@
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 @@
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 @@
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);
}
}