summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-06-01 14:08:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-06-01 14:08:19 (GMT)
commit1d715036ff4ba8961ecbdab9b140fda36bd79d52 (patch)
tree2314649261af2a2ac162041ed358f2cebc8ec8e3 /generic/tclUtil.c
parentfb86112efdce47b67caefa2f898baa30e0b0bdde (diff)
parentfe3139184fa2320cd32955835bfd691e66e4694d (diff)
downloadtcl-1d715036ff4ba8961ecbdab9b140fda36bd79d52.zip
tcl-1d715036ff4ba8961ecbdab9b140fda36bd79d52.tar.gz
tcl-1d715036ff4ba8961ecbdab9b140fda36bd79d52.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 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 */