summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2008-05-16 14:13:32 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2008-05-16 14:13:32 (GMT)
commitecf4164c6f084705cf96b0610c3bfc82c44a094f (patch)
tree087195b3a51179c0ed248c96965f87ed34fcb8de
parent5e16c3823829638c614e311586d3e0c9ca0fa32a (diff)
downloadtcl-ecf4164c6f084705cf96b0610c3bfc82c44a094f.zip
tcl-ecf4164c6f084705cf96b0610c3bfc82c44a094f.tar.gz
tcl-ecf4164c6f084705cf96b0610c3bfc82c44a094f.tar.bz2
* generic/tclCompile.c: fix crash with tcl_traceExec. Found and
fixed by Alexander Pasadyn [Bug 1964803].
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclCompile.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a8a5da6..ecbc97f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-16 Miguel Sofer <msofer@users.sf.net>
+
+ * generic/tclCompile.c: fix crash with tcl_traceExec. Found and
+ fixed by Alexander Pasadyn [Bug 1964803].
+
2008-05-15 Pat Thoyts <patthoyts@users.sourceforge.net>
* win/makefile.vc: We should use the thread allocator for threaded
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 4b68c40..ec94d6b 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.146 2008/01/23 21:21:30 dgp Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.147 2008/05/16 14:13:33 msofer Exp $
*/
#include "tclInt.h"
@@ -3342,7 +3342,7 @@ TclPrintSource(
TclNewObj(bufferObj);
PrintSourceToObj(bufferObj, stringPtr, maxChars);
- fprintf(outFile, TclGetString(bufferObj));
+ fprintf(outFile, "%s", TclGetString(bufferObj));
Tcl_DecrRefCount(bufferObj);
}
#endif /* TCL_COMPILE_DEBUG */