diff options
author | dgp <dgp@users.sourceforge.net> | 2005-09-14 21:32:16 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-09-14 21:32:16 (GMT) |
commit | 62b5bf66c2c8dda87b14b78f81bc58a02cdfb172 (patch) | |
tree | 82a5606aa3a2ef7d0ea577afdb0814e7a2a96e48 /generic/tclDictObj.c | |
parent | dc74c2b374a963186c53482685a2c91773ade3da (diff) | |
download | tcl-62b5bf66c2c8dda87b14b78f81bc58a02cdfb172.zip tcl-62b5bf66c2c8dda87b14b78f81bc58a02cdfb172.tar.gz tcl-62b5bf66c2c8dda87b14b78f81bc58a02cdfb172.tar.bz2 |
* generic/tclStringObj.c: Bug fixes: ObjPrintfVA needed to
support "*" fields and needed to interpret precision limits on
%s conversions as a maximum number of bytes, not Tcl_UniChars, to
take from the (char *) argument.
* generic/tclBasic.c: Updated several callers to use
* generic/tclCkalloc.c: TclFormatToErrorInfo() and/or
* generic/tclCmdAH.c: TclObjPrintf().
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclDictObj.c:
* generic/tclExecute.c:
* generic/tclIORChan.c:
* generic/tclIOUtil.c:
* generic/tclNamesp.c:
* generic/tclProc.c:
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r-- | generic/tclDictObj.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c index 1e428a1..a64fb6c 100644 --- a/generic/tclDictObj.c +++ b/generic/tclDictObj.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclDictObj.c,v 1.33 2005/07/21 21:49:05 dkf Exp $ + * RCS: @(#) $Id: tclDictObj.c,v 1.34 2005/09/14 21:32:17 dgp Exp $ */ #include "tclInt.h" @@ -2294,11 +2294,8 @@ DictForCmd(interp, objc, objv) if (result == TCL_BREAK) { result = TCL_OK; } else if (result == TCL_ERROR) { - char msg[32 + TCL_INTEGER_SPACE]; - - sprintf(msg, "\n (\"dict for\" body line %d)", - interp->errorLine); - Tcl_AddObjErrorInfo(interp, msg, -1); + TclFormatToErrorInfo(interp, + "\n (\"dict for\" body line %d)", interp->errorLine); } break; } @@ -2642,9 +2639,9 @@ DictFilterCmd(interp, objc, objv) result = TCL_OK; break; case TCL_ERROR: - sprintf(msg, "\n (\"dict filter\" script line %d)", + TclFormatToErrorInfo(interp, + "\n (\"dict filter\" script line %d)", interp->errorLine); - Tcl_AddObjErrorInfo(interp, msg, -1); default: goto abnormalResult; } |