From 67d73535aad14b1646571c25e82db621225bbace Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 11 Feb 2003 18:34:43 +0000 Subject: * generic/tclParse.c (CommandComplete): more paranoid check to break on (p >= end) instead of just (p == end). --- generic/tclParse.c | 4 ++-- 1 file 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); -- cgit v0.12