summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2009-06-15 18:52:25 (GMT)
committerdgp@users.sourceforge.net <dgp>2009-06-15 18:52:25 (GMT)
commitdb43155111c1569a9eb1b20d9ae3d236edd5cbce (patch)
tree62f2248f73f521a12f7a3bf198524cb9b00c14dd /generic/tclStringObj.c
parent5babd319ba4144e909aa6f84501e6b4142502ebe (diff)
downloadtcl-db43155111c1569a9eb1b20d9ae3d236edd5cbce.zip
tcl-db43155111c1569a9eb1b20d9ae3d236edd5cbce.tar.gz
tcl-db43155111c1569a9eb1b20d9ae3d236edd5cbce.tar.bz2
* generic/tclStringObj.c: sprintf() -> Tcl_ObjPrintf() conversion.
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index e844e14..b1f232d 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -33,7 +33,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStringObj.c,v 1.70.2.13 2009/06/10 21:38:13 dgp Exp $ */
+ * RCS: @(#) $Id: tclStringObj.c,v 1.70.2.14 2009/06/15 18:52:25 dgp Exp $ */
#include "tclInt.h"
#include "tommath.h"
@@ -2379,10 +2379,8 @@ Tcl_AppendFormatToObj(
}
default:
if (interp != NULL) {
- char buf[40];
-
- sprintf(buf, "bad field specifier \"%c\"", ch);
- Tcl_SetObjResult(interp, Tcl_NewStringObj(buf, -1));
+ Tcl_SetObjResult(interp,
+ Tcl_ObjPrintf("bad field specifier \"%c\"", ch));
}
goto error;
}