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 | 6aaf240265c23fd669013a03f7207254703d4657 (patch) | |
| tree | c5c57f654030794efac8f4e4191b0c143a82a1a7 | |
| parent | b393a65576bca914118d4b98d2ebca5485ed5a1e (diff) | |
| download | ruby-6aaf240265c23fd669013a03f7207254703d4657.tar.gz ruby-6aaf240265c23fd669013a03f7207254703d4657.tar.xz ruby-6aaf240265c23fd669013a03f7207254703d4657.zip | |
* win32/win32.c (CreateChild): push back the last space before next
loop because CharNext() eats it.
git-svn-id: http://svn.ruby-lang.org/repos/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 9fffcb7b4..6229cba96 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; |
