summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-09-04 21:35:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-09-04 21:35:21 (GMT)
commita50dcb923a50640e31a433c872caa63630d8202d (patch)
treeb5db0420431479a99a1a92ade263f2d177ff1e7f /generic/tclRegexp.c
parent25925f6f8e072a0bc3cf719c7684eff79f96ed8f (diff)
parent4c8d436cd9e92ed6a304fed697f233ecb7996635 (diff)
downloadtcl-a50dcb923a50640e31a433c872caa63630d8202d.zip
tcl-a50dcb923a50640e31a433c872caa63630d8202d.tar.gz
tcl-a50dcb923a50640e31a433c872caa63630d8202d.tar.bz2
merge trunk
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));