diff options
| author | dgp@users.sourceforge.net <dgp> | 2011-06-01 14:08:19 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2011-06-01 14:08:19 (GMT) |
| commit | 3aa5eda187af48f3d482af9a095efe9a1def6d5f (patch) | |
| tree | 2314649261af2a2ac162041ed358f2cebc8ec8e3 /generic/tclUtil.c | |
| parent | 4f75e5f1912de1efff40e7f97c46f822d3096b4c (diff) | |
| parent | daca41126d13f6ab6da3b161462ae491be92fa70 (diff) | |
| download | tcl-3aa5eda187af48f3d482af9a095efe9a1def6d5f.zip tcl-3aa5eda187af48f3d482af9a095efe9a1def6d5f.tar.gz tcl-3aa5eda187af48f3d482af9a095efe9a1def6d5f.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 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 */ |
