summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2011-01-18 08:43:53 (GMT)
committernijtmans <nijtmans@noemail.net>2011-01-18 08:43:53 (GMT)
commit5699815e3131869e237046a9e0959d7d4a1c745a (patch)
treeaf236c9f19fe93b1abae154034101646497a88d5 /generic/tclTest.c
parent959db7fbd7f8ef20107f6878e68d744ddc0ac92b (diff)
downloadtcl-5699815e3131869e237046a9e0959d7d4a1c745a.zip
tcl-5699815e3131869e237046a9e0959d7d4a1c745a.tar.gz
tcl-5699815e3131869e237046a9e0959d7d4a1c745a.tar.bz2
Various mismatches between Tcl_Panic format string and its arguments,
discovered thanks to [Bug 3159920] FossilOrigin-Name: 964a1a5a57cc4c71eb25da444d9f804bac32e8d4
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 81ba0fb..e12153d 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.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: tclTest.c,v 1.156 2010/12/01 09:58:52 nijtmans Exp $
+ * RCS: @(#) $Id: tclTest.c,v 1.157 2011/01/18 08:43:53 nijtmans Exp $
*/
#include <math.h>
@@ -4492,7 +4492,7 @@ TestpanicCmd(
*/
argString = Tcl_Merge(argc-1, argv+1);
- Tcl_Panic(argString);
+ Tcl_Panic("%s", argString);
ckfree((char *)argString);
return TCL_OK;