2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

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]
This commit is contained in:
Jurko Gospodnetić
2012-06-18 23:17:33 +00:00
parent 992931ee90
commit 3f6421cd91

View File

@@ -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;