summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-09-20 13:02:29 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-09-20 13:02:29 (GMT)
commite3309e4d57407994dfba25053019cd7f1f5bd083 (patch)
treebf68b0b0a6c8342c24a522435cd2cf797929427a /generic/tclUtil.c
parent2f5ec3509d4e78728930acdb71d70eec99124817 (diff)
parenta28b7ede49c7e21c0d7150cca682433e94a78464 (diff)
downloadtcl-e3309e4d57407994dfba25053019cd7f1f5bd083.zip
tcl-e3309e4d57407994dfba25053019cd7f1f5bd083.tar.gz
tcl-e3309e4d57407994dfba25053019cd7f1f5bd083.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 27e2474..b089132 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3580,10 +3580,9 @@ UpdateStringOfEndOffset(
register Tcl_Obj *objPtr)
{
char buffer[TCL_INTEGER_SPACE + 5];
- register int len;
+ register int len = 3;
memcpy(buffer, "end", 4);
- len = sizeof("end") - 1;
if (objPtr->internalRep.longValue != 0) {
buffer[len++] = '-';
len += TclFormatInt(buffer+len, -(objPtr->internalRep.longValue));