From 0412ddfd24f806b8d1dd88a367f21684b30e5fd0 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 29 Nov 2004 04:17:05 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ win32/win32.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b05ac1cce..0d8b355640 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 29 13:13:13 2004 NAKAMURA Usaku + + * 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 * io.c (rb_io_check_writable): call io_seek regardless of 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;