summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-06-01 13:14:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-06-01 13:14:20 (GMT)
commitc31b5e030892e09c7f5bdc8538ecc09b760bab3b (patch)
tree86b778d135c98a1c2481ff146c55b00ffc2c4e87
parentab1ff5f9d6a78c586f81d6c274544cb5b4c45b92 (diff)
downloadtcl-c31b5e030892e09c7f5bdc8538ecc09b760bab3b.zip
tcl-c31b5e030892e09c7f5bdc8538ecc09b760bab3b.tar.gz
tcl-c31b5e030892e09c7f5bdc8538ecc09b760bab3b.tar.bz2
Revised fix for bug 3309871
-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 */