diff options
author | davygrvy <davygrvy@pobox.com> | 2004-05-10 19:10:49 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2004-05-10 19:10:49 (GMT) |
commit | f1c7a2a6e97a8341e9485481bb0fa8b938df1912 (patch) | |
tree | ed160c4880a9e2ddff3e48c4899700fd67f94e80 /win/tclWinPipe.c | |
parent | dd221577b54c98850c9c5559412fdfa4144fa779 (diff) | |
download | tcl-f1c7a2a6e97a8341e9485481bb0fa8b938df1912.zip tcl-f1c7a2a6e97a8341e9485481bb0fa8b938df1912.tar.gz tcl-f1c7a2a6e97a8341e9485481bb0fa8b938df1912.tar.bz2 |
(BuildCommandLine): Append a space when the path got primed.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r-- | win/tclWinPipe.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index ffc6429..9e08780 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.33.2.6 2004/02/25 07:56:21 davygrvy Exp $ + * RCS: @(#) $Id: tclWinPipe.c,v 1.33.2.7 2004/05/10 19:10:49 davygrvy Exp $ */ #include "tclWinInt.h" @@ -1567,11 +1567,13 @@ BuildCommandLine( Tcl_DStringInit(&ds); /* - * Prime the path. + * Prime the path. Add a space separator if we were primed with + * something. */ - + Tcl_DStringAppend(&ds, Tcl_DStringValue(linePtr), -1); - + if (Tcl_DStringLength(&ds) > 0) Tcl_DStringAppend(&ds, " ", 1); + for (i = 0; i < argc; i++) { if (i == 0) { arg = executable; |