diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2008-05-16 14:27:28 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2008-05-16 14:27:28 (GMT) |
commit | e47e090ebc6534d30664a39311da929831681b02 (patch) | |
tree | 2ccb677ea6a343db38c3fa07144d11f3d5c198dd | |
parent | a0b336f430a04225031da273f5deddedc558534b (diff) | |
download | tcl-e47e090ebc6534d30664a39311da929831681b02.zip tcl-e47e090ebc6534d30664a39311da929831681b02.tar.gz tcl-e47e090ebc6534d30664a39311da929831681b02.tar.bz2 |
* generic/tclCompile.c: fix crash with tcl_traceExec. Found and
fixed by Alexander Pasadyn [Bug 1964803].
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclCompile.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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-07 Donal K. Fellows <donal.k.fellows@man.ac.uk> * generic/tclCompCmds.c (TclCompileDictAppendCmd): Fix silly diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 4b68c40..bdb81bb 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.146.2.1 2008/05/16 14:27:30 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 */ |