diff options
author | dgp <dgp@users.sourceforge.net> | 2008-05-22 15:25:54 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-05-22 15:25:54 (GMT) |
commit | bfa75a0049382386cd2754f86e14d3c9f4177db4 (patch) | |
tree | f6c01d0e708ef5f1d6db8716147359a70b8ad3b0 | |
parent | 89a9e0dd71bca0ecc5f87508db1b101eda76688d (diff) | |
download | tcl-bfa75a0049382386cd2754f86e14d3c9f4177db4.zip tcl-bfa75a0049382386cd2754f86e14d3c9f4177db4.tar.gz tcl-bfa75a0049382386cd2754f86e14d3c9f4177db4.tar.bz2 |
* generic/tclNamesp.c (Tcl_LogCommandInfo): Restored ability to
handle the argument value length = -1. Thanks to Chris Darroch for
discovering the bug and providing the fix. [Bug 1968245].
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tclNamesp.c | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2008-05-22 Don Porter <dgp@users.sourceforge.net> + + * generic/tclNamesp.c (Tcl_LogCommandInfo): Restored ability to + handle the argument value length = -1. Thanks to Chris Darroch for + discovering the bug and providing the fix. [Bug 1968245]. + 2008-05-21 Don Porter <dgp@users.sourceforge.net> * generic/tclParse.c (ParseComment): The new TclParseAllWhiteSpace() diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index c51ea08..717eaf9 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -23,7 +23,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.162.2.1 2008/05/21 13:26:16 dkf Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.162.2.2 2008/05/22 15:25:54 dgp Exp $ */ #include "tclInt.h" @@ -6952,6 +6952,9 @@ Tcl_LogCommandInfo( } } + if (length < 0) { + length = strlen(command); + } overflow = (length > limit); Tcl_AppendObjToErrorInfo(interp, Tcl_ObjPrintf( "\n %s\n\"%.*s%s\"", ((iPtr->errorInfo == NULL) |