From edb6fe70439be22082b1beb94feaf1ed4ace680a Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 29 Nov 2004 04:17:05 +0000 Subject: * 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/trunk@7408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 1e30ffec9..ed6402cc6 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; -- cgit