summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authormsofer <msofer@noemail.net>2002-03-27 19:20:53 (GMT)
committermsofer <msofer@noemail.net>2002-03-27 19:20:53 (GMT)
commit3a4e19f9724809225122f68835b00db5ffd0edd2 (patch)
treed91fe7cf72420d2b870c8f0ba8d9ca927de6f51e /generic
parenta75a62e2e11914c17fe8100c13975bd0e9703daf (diff)
downloadtcl-3a4e19f9724809225122f68835b00db5ffd0edd2.zip
tcl-3a4e19f9724809225122f68835b00db5ffd0edd2.tar.gz
tcl-3a4e19f9724809225122f68835b00db5ffd0edd2.tar.bz2
passing the correct commandSize to TclEvalObjvInternal. [Bug 219362],
fix by David Knoll. FossilOrigin-Name: 814a0619d032a6c097f4f1ecbdef711c44dcf86b
Diffstat (limited to 'generic')
-rw-r--r--generic/tclBasic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 5a4424b..e8372ea 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.54 2002/03/27 14:35:40 msofer Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.55 2002/03/27 19:20:54 msofer Exp $
*/
#include "tclInt.h"
@@ -3581,7 +3581,8 @@ Tcl_EvalEx(interp, script, numBytes, flags)
code = TCL_ERROR;
} else {
iPtr->numLevels++;
- code = TclEvalObjvInternal(interp, objectsUsed, objv, p, bytesLeft, 0);
+ code = TclEvalObjvInternal(interp, objectsUsed, objv, p,
+ parse.commandStart + parse.commandSize - p, 0);
iPtr->numLevels--;
}
if (code != TCL_OK) {