summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-29 04:17:05 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-29 04:17:05 +0000
commit0412ddfd24f806b8d1dd88a367f21684b30e5fd0 (patch)
tree69d13d2d8f517f19a6ede89cee751731338407ea /win32
parent9c926fb4010bb801c30ca1de48b4bd66ba40944d (diff)
downloadruby-0412ddfd24f806b8d1dd88a367f21684b30e5fd0.tar.gz
* win32/win32.c (CreateChild): push back the last space before next
loop because CharNext() eats it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 1e30ffec9b..ed6402cc62 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -931,7 +931,7 @@ CreateChild(const char *cmd, const char *prog, SECURITY_ATTRIBUTES *psa,
if (ISSPACE(*prog)) {
len = prog - cmd;
do ++prog; while (ISSPACE(*prog));
- if (!*prog) break;
+ if (!*prog--) break;
}
else {
len = 0;