diff options
author | dgp <dgp@users.sourceforge.net> | 2011-06-01 13:14:20 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-06-01 13:14:20 (GMT) |
commit | fe3139184fa2320cd32955835bfd691e66e4694d (patch) | |
tree | 86b778d135c98a1c2481ff146c55b00ffc2c4e87 /generic/tclUtil.c | |
parent | 7da2b0f93974d1edc6dc313f44c1e40ca9e956aa (diff) | |
download | tcl-fe3139184fa2320cd32955835bfd691e66e4694d.zip tcl-fe3139184fa2320cd32955835bfd691e66e4694d.tar.gz tcl-fe3139184fa2320cd32955835bfd691e66e4694d.tar.bz2 |
Revised fix for bug 3309871
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 4 |
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 */ |