summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-08-06 07:59:01 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-08-06 07:59:01 (GMT)
commit6aee63effa88b49ebd875a8f1615454f842820f2 (patch)
tree9726218d2767be111aba0feda74cd0ac220f4355 /generic/tclRegexp.c
parent68c14126f5f9f31f14ddbcd054764da66e76b7fd (diff)
parent0d3a04a3c2c1394b9cc43b115db2105d11842cd9 (diff)
downloadtcl-6aee63effa88b49ebd875a8f1615454f842820f2.zip
tcl-6aee63effa88b49ebd875a8f1615454f842820f2.tar.gz
tcl-6aee63effa88b49ebd875a8f1615454f842820f2.tar.bz2
merge trunk
FossilOrigin-Name: ff11683baba21e1f4b79305312fa5be47337841a
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r--generic/tclRegexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c
index 53d7153..6c1dc08 100644
--- a/generic/tclRegexp.c
+++ b/generic/tclRegexp.c
@@ -714,14 +714,14 @@ TclRegError(
int status) /* Status code to report. */
{
char buf[100]; /* ample in practice */
- char cbuf[100]; /* lots in practice */
+ char cbuf[TCL_INTEGER_SPACE];
size_t n;
const char *p;
Tcl_ResetResult(interp);
n = TclReError(status, NULL, buf, sizeof(buf));
p = (n > sizeof(buf)) ? "..." : "";
- Tcl_AppendResult(interp, msg, buf, p, NULL);
+ Tcl_SetObjResult(interp, Tcl_ObjPrintf("%s%s%s", msg, buf, p));
sprintf(cbuf, "%d", status);
(void) TclReError(REG_ITOA, NULL, cbuf, sizeof(cbuf));