diff options
author | nijtmans <nijtmans> | 2011-01-18 10:02:02 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2011-01-18 10:02:02 (GMT) |
commit | cc8366263b4a7bcff79d426bf5ec811715a7d0b7 (patch) | |
tree | d024a01a23bca66395b5d830b9ff79ab3c1ea6a0 /generic/tclTest.c | |
parent | c19c3f2d6de6320a78e1a5fc90c832a6247f8f9c (diff) | |
download | tcl-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/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 4 |
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; |