diff options
-rw-r--r-- | generic/tclNamesp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index f5f3da1..fc1111f 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -22,7 +22,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.122 2007/02/06 21:08:06 dgp Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.123 2007/02/06 22:20:27 dkf Exp $ */ #include "tclInt.h" @@ -3113,7 +3113,8 @@ NamespaceChildrenCmd( listPtr = Tcl_NewListObj(0, NULL); if ((pattern != NULL) && TclMatchIsTrivial(pattern)) { - int length = strlen(nsPtr->fullName); + unsigned int length = strlen(nsPtr->fullName); + if (strncmp(pattern, nsPtr->fullName, length) != 0) { goto searchDone; } |