From 3f6421cd915249bc5787f5d5f9a64e5136e0a985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 18 Jun 2012 23:17:33 +0000 Subject: [PATCH] Checking whether a command can be spawned directly (as opposed to invoking it via an external shell) in Boost Build's execnt.c module now correctly skips all leading whitespace characters and not just tabs and spaces. [SVN r78990] --- src/engine/execnt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/execnt.c b/src/engine/execnt.c index 6e255f5b0..ac8258107 100644 --- a/src/engine/execnt.c +++ b/src/engine/execnt.c @@ -719,7 +719,8 @@ long can_spawn( char const * command ) char inquote = 0; /* Move to the first non-whitespace. */ - command += strspn( command, " \t" ); + while ( isspace( *command ) ) + ++command; p = command;