diff --git a/src/engine/execnt.c b/src/engine/execnt.c index a7e65da43..41dd1dab4 100644 --- a/src/engine/execnt.c +++ b/src/engine/execnt.c @@ -238,7 +238,7 @@ void execcmd( } /* Trim leading, -ending- white space */ - while( isspace( *command ) ) + while( *(command+1) && isspace( *command ) ) ++command; /* Write to .BAT file unless the line would be too long and it