Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-12-02 21:57:49


Author: grafik
Date: 2007-12-02 21:57:49 EST (Sun, 02 Dec 2007)
New Revision: 41626
URL: http://svn.boost.org/trac/boost/changeset/41626

Log:
Work around some Windows CMD.EXE programs that will fail executing a totally empty batch file.
Text files modified:
   trunk/tools/jam/src/execnt.c | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/tools/jam/src/execnt.c
==============================================================================
--- trunk/tools/jam/src/execnt.c (original)
+++ trunk/tools/jam/src/execnt.c 2007-12-02 21:57:49 EST (Sun, 02 Dec 2007)
@@ -238,7 +238,7 @@
     }
 
     /* 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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk