diff options
author | chengyemao <chengyemao> | 2003-08-15 01:40:59 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2003-08-15 01:40:59 (GMT) |
commit | f949e9949bcc3cf843f5fc5ef22e26edde6c60cf (patch) | |
tree | d9705858ec5195f87ad545d3715b7649efc7cb05 | |
parent | 65e17722f171ca567827a4d59ea436f636f938d2 (diff) | |
download | tcl-f949e9949bcc3cf843f5fc5ef22e26edde6c60cf.zip tcl-f949e9949bcc3cf843f5fc5ef22e26edde6c60cf.tar.gz tcl-f949e9949bcc3cf843f5fc5ef22e26edde6c60cf.tar.bz2 |
Bug fix in BuildCommandLine: missing a space when linePtr is not null
-rw-r--r-- | win/tclWinPipe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index 48931aa..90f4ae1 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinPipe.c,v 1.35 2003/04/15 00:18:58 mdejong Exp $ + * RCS: @(#) $Id: tclWinPipe.c,v 1.36 2003/08/15 01:40:59 chengyemao Exp $ */ #include "tclWinInt.h" @@ -1577,9 +1577,10 @@ BuildCommandLine( arg = executable; } else { arg = argv[i]; - Tcl_DStringAppend(&ds, " ", 1); } + if(Tcl_DStringLength(&ds) > 0) Tcl_DStringAppend(&ds, " ", 1); + quote = 0; if (arg[0] == '\0') { quote = 1; |