summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-05-12 20:15:26 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-05-12 20:15:26 (GMT)
commit848f3e85419c57c034cd7ebe11918e835f04782b (patch)
treeeeec33a63241b5cf285d02c071f22df09cf57fa2 /generic/tclBasic.c
parent83b3d7bbd3e11747ab0a311934e0ea8790bb2435 (diff)
downloadtcl-848f3e85419c57c034cd7ebe11918e835f04782b.zip
tcl-848f3e85419c57c034cd7ebe11918e835f04782b.tar.gz
tcl-848f3e85419c57c034cd7ebe11918e835f04782b.tar.bz2
* generic/tclBasic.c (TclInvokeObjectCommand): objv[argc] is no
longer set to NULL (Tcl_CreateObjCommand docs already say that it should not be accessed). * tests/cmdMZ.test: Forgot to import [temporaryDirectory].
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 5551c45..0fc1e59 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.81 2003/05/05 20:54:38 dgp Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.82 2003/05/12 20:15:28 dgp Exp $
*/
#include "tclInt.h"
@@ -1856,9 +1856,9 @@ TclInvokeObjectCommand(clientData, interp, argc, argv)
* end-of-objv word.
*/
- if ((argc + 1) > NUM_ARGS) {
+ if (argc > NUM_ARGS) {
objv = (Tcl_Obj **)
- ckalloc((unsigned)(argc + 1) * sizeof(Tcl_Obj *));
+ ckalloc((unsigned)(argc * sizeof(Tcl_Obj *)));
}
for (i = 0; i < argc; i++) {
@@ -1868,7 +1868,6 @@ TclInvokeObjectCommand(clientData, interp, argc, argv)
Tcl_IncrRefCount(objPtr);
objv[i] = objPtr;
}
- objv[argc] = 0;
/*
* Invoke the command's object-based Tcl_ObjCmdProc.