summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-05-03 19:07:31 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-05-03 19:07:31 (GMT)
commitaed8684173b0fe3f9627c9ff7343d176dfd1afa7 (patch)
treeaa9286b82b13d27db707ed00e08566b561e65be7 /generic
parent7dae77dae8c9aff0ac1739acc19c221f5398a325 (diff)
downloadtcl-aed8684173b0fe3f9627c9ff7343d176dfd1afa7.zip
tcl-aed8684173b0fe3f9627c9ff7343d176dfd1afa7.tar.gz
tcl-aed8684173b0fe3f9627c9ff7343d176dfd1afa7.tar.bz2
Tighten Tcl_SplitList().
Diffstat (limited to 'generic')
-rw-r--r--generic/tclUtil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 1e10465..bd543b0 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -542,8 +542,7 @@ Tcl_SplitList(
*p = 0;
p++;
} else {
- TclCopyAndCollapse(elSize, element, p);
- p += elSize+1;
+ p += 1 + TclCopyAndCollapse(elSize, element, p);
}
}