summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2011-06-01 13:14:20 (GMT)
committerdgp@users.sourceforge.net <dgp>2011-06-01 13:14:20 (GMT)
commitdaca41126d13f6ab6da3b161462ae491be92fa70 (patch)
tree86b778d135c98a1c2481ff146c55b00ffc2c4e87 /generic/tclUtil.c
parentdd38c6bae00bf1fe4b756e575cec406d1c0ee08f (diff)
downloadtcl-daca41126d13f6ab6da3b161462ae491be92fa70.zip
tcl-daca41126d13f6ab6da3b161462ae491be92fa70.tar.gz
tcl-daca41126d13f6ab6da3b161462ae491be92fa70.tar.bz2
Revised fix for bug 3309871
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 9a23291..f5c2926 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -409,8 +409,8 @@ TclMaxListLength(
do {
bytes++;
numBytes -= (numBytes != -1);
- } while (numBytes && (*bytes != '\0') && TclIsSpaceProc(*bytes));
- if ((numBytes == 0) || (*bytes == '\0')) {
+ } while (numBytes && TclIsSpaceProc(*bytes));
+ if ((numBytes == 0) || ((numBytes == -1) && (*bytes == '\0'))) {
break;
}
/* (*bytes) is non-space; return to counting state */