summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2011-01-18 10:02:02 (GMT)
committernijtmans <nijtmans>2011-01-18 10:02:02 (GMT)
commit757315203edd4f63dbeb0a7bde2d88276ae1a444 (patch)
treed024a01a23bca66395b5d830b9ff79ab3c1ea6a0 /generic/tclTest.c
parent53304b60d8cff2733905cbf09d5138055d70c0e1 (diff)
downloadtcl-757315203edd4f63dbeb0a7bde2d88276ae1a444.zip
tcl-757315203edd4f63dbeb0a7bde2d88276ae1a444.tar.gz
tcl-757315203edd4f63dbeb0a7bde2d88276ae1a444.tar.bz2
Various mismatches between Tcl_Panic format string and its arguments,
discovered thanks to [Bug 3159920]
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 29c003f..f7d273d 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.114.2.8 2010/11/30 20:59:28 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclTest.c,v 1.114.2.9 2011/01/18 10:02:03 nijtmans Exp $
*/
#include <math.h>
@@ -4499,7 +4499,7 @@ TestpanicCmd(
*/
argString = Tcl_Merge(argc-1, argv+1);
- Tcl_Panic(argString);
+ Tcl_Panic("%s", argString);
ckfree((char *)argString);
return TCL_OK;