summaryrefslogtreecommitdiffstats
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)
commit7e14c9657710e00a674b9e8c676f8e15680083d8 (patch)
treeaa9286b82b13d27db707ed00e08566b561e65be7
parent81b0876b5108f150ac7c4441a9ee45552f9aa479 (diff)
downloadtcl-7e14c9657710e00a674b9e8c676f8e15680083d8.zip
tcl-7e14c9657710e00a674b9e8c676f8e15680083d8.tar.gz
tcl-7e14c9657710e00a674b9e8c676f8e15680083d8.tar.bz2
Tighten Tcl_SplitList().
-rw-r--r--ChangeLog1
-rw-r--r--generic/tclUtil.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cab340e..7ced1a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2011-05-03 Don Porter <dgp@users.sourceforge.net>
+ * generic/tclUtil.c: Tighten Tcl_SplitList().
* generic/tclListObj.c: Tighten SetListFromAny().
* generic/tclDictObj.c: Tighten SetDictFromAny().
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);
}
}