summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-05-07 10:39:35 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-05-07 10:39:35 (GMT)
commita0b336f430a04225031da273f5deddedc558534b (patch)
treea400d35e3eb099464aeb56b217bb71f4871f0abc /generic
parent25edfa4cd0936846023823ff357f138cbfd37cd9 (diff)
downloadtcl-a0b336f430a04225031da273f5deddedc558534b.zip
tcl-a0b336f430a04225031da273f5deddedc558534b.tar.gz
tcl-a0b336f430a04225031da273f5deddedc558534b.tar.bz2
Fix off-by-one error that caused crashes. Backport from HEAD.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompCmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index 9fa3bf6..6a71666 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompCmds.c,v 1.143 2008/03/16 17:00:43 dkf Exp $
+ * RCS: @(#) $Id: tclCompCmds.c,v 1.143.2.1 2008/05/07 10:39:38 dkf Exp $
*/
#include "tclInt.h"
@@ -1215,7 +1215,7 @@ TclCompileDictAppendCmd(
tokenPtr = TokenAfter(tokenPtr);
}
if (parsePtr->numWords > 4) {
- TclEmitInstInt1(INST_CONCAT1, parsePtr->numWords-2, envPtr);
+ TclEmitInstInt1(INST_CONCAT1, parsePtr->numWords-3, envPtr);
}
/*