summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2011-01-18 10:02:02 (GMT)
committernijtmans <nijtmans>2011-01-18 10:02:02 (GMT)
commitcc8366263b4a7bcff79d426bf5ec811715a7d0b7 (patch)
treed024a01a23bca66395b5d830b9ff79ab3c1ea6a0 /generic/tclBasic.c
parentc19c3f2d6de6320a78e1a5fc90c832a6247f8f9c (diff)
downloadtcl-cc8366263b4a7bcff79d426bf5ec811715a7d0b7.zip
tcl-cc8366263b4a7bcff79d426bf5ec811715a7d0b7.tar.gz
tcl-cc8366263b4a7bcff79d426bf5ec811715a7d0b7.tar.bz2
Various mismatches between Tcl_Panic format string and its arguments,
discovered thanks to [Bug 3159920]
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index e686237..f91901d 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -14,7 +14,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.295.2.19 2010/11/15 21:32:31 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.295.2.20 2011/01/18 10:02:02 nijtmans Exp $
*/
#include "tclInt.h"
@@ -830,7 +830,7 @@ Tcl_CreateInterp(void)
Tcl_InitStubs(interp, TCL_VERSION, 1);
if (TclTommath_Init(interp) != TCL_OK) {
- Tcl_Panic(Tcl_GetString(Tcl_GetObjResult(interp)));
+ Tcl_Panic("%s", Tcl_GetString(Tcl_GetObjResult(interp)));
}
return interp;
@@ -4847,7 +4847,7 @@ TclArgumentBCRelease(interp,objv,objc,codePtr,pc)
(char *) objv[word]);
if (hPtr) {
CFWordBC* cfwPtr = (CFWordBC*) Tcl_GetHashValue (hPtr);
-
+
if (cfwPtr->prevPtr) {
Tcl_SetHashValue(hPtr, cfwPtr->prevPtr);
} else {