diff options
author | hobbs <hobbs> | 2003-02-11 18:34:43 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-02-11 18:34:43 (GMT) |
commit | 67d73535aad14b1646571c25e82db621225bbace (patch) | |
tree | fc83919523828d5ffee0edc48a85d29c97f6b5ec /generic | |
parent | 158e2b7f043bda894f2c6b3602223746972687aa (diff) | |
download | tcl-67d73535aad14b1646571c25e82db621225bbace.zip tcl-67d73535aad14b1646571c25e82db621225bbace.tar.gz tcl-67d73535aad14b1646571c25e82db621225bbace.tar.bz2 |
* generic/tclParse.c (CommandComplete): more paranoid check to
break on (p >= end) instead of just (p == end).
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclParse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c index f1ffec7..7e8fced 100644 --- a/generic/tclParse.c +++ b/generic/tclParse.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclParse.c,v 1.23 2003/02/11 18:03:27 msofer Exp $ + * RCS: @(#) $Id: tclParse.c,v 1.24 2003/02/11 18:34:43 hobbs Exp $ */ #include "tclInt.h" @@ -1646,7 +1646,7 @@ CommandComplete(script, numBytes) while (Tcl_ParseCommand((Tcl_Interp *) NULL, p, end - p, 0, &parse) == TCL_OK) { p = parse.commandStart + parse.commandSize; - if (p == end) { + if (p >= end) { break; } Tcl_FreeParse(&parse); |