diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-29 04:17:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-29 04:17:05 +0000 |
commit | 518c3a3479747b304d5e75b449f9377577a9d978 (patch) | |
tree | c5c57f654030794efac8f4e4191b0c143a82a1a7 | |
parent | 4192b873cc2fa458c051c424990d8896a05f1535 (diff) |
* 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/branches/ruby_1_8@7408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | win32/win32.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Nov 29 13:16:31 2004 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c (CreateChild): push back the last space before next + loop because CharNext() eats it. + Mon Nov 29 01:18:18 2004 Tanaka Akira <akr@m17n.org> * io.c (rb_io_check_writable): call io_seek regardless of diff --git a/win32/win32.c b/win32/win32.c index 9fffcb7b47..6229cba962 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -918,7 +918,7 @@ CreateChild(char *cmd, char *prog, SECURITY_ATTRIBUTES *psa, HANDLE hInput, HAND if (ISSPACE(*prog)) { len = prog - cmd; do ++prog; while (ISSPACE(*prog)); - if (!*prog) break; + if (!*prog--) break; } else { len = 0; |