diff options
author | dgp <dgp@users.sourceforge.net> | 2011-06-01 14:08:19 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-06-01 14:08:19 (GMT) |
commit | 42759906725e29de1f3a76cfef2c2d21f34ecc95 (patch) | |
tree | 2314649261af2a2ac162041ed358f2cebc8ec8e3 | |
parent | ffdd191a57e3105fd2a4702b0c2496b83c9e0637 (diff) | |
parent | c31b5e030892e09c7f5bdc8538ecc09b760bab3b (diff) | |
download | tcl-42759906725e29de1f3a76cfef2c2d21f34ecc95.zip tcl-42759906725e29de1f3a76cfef2c2d21f34ecc95.tar.gz tcl-42759906725e29de1f3a76cfef2c2d21f34ecc95.tar.bz2 |
Revised fix for bug 3309871
-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 f424381..6f36dad 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -408,8 +408,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 */ |