natVMSecurityManager.cc (getClassContext): Use maxlen instead of len for loop bound.

* java/lang/natVMSecurityManager.cc (getClassContext):
	Use maxlen instead of len for loop bound.

From-SVN: r68153
This commit is contained in:
Matt Kraai 2003-06-18 14:13:59 +00:00 committed by Matt Kraai
parent 99bf9b5558
commit 7b4a4fceef
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-06-18 Matt Kraai <kraai@alumni.cmu.edu>
* java/lang/natVMSecurityManager.cc (getClassContext):
Use maxlen instead of len for loop bound.
2003-06-18 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SelectorImpl.java

View File

@ -28,7 +28,7 @@ java::lang::VMSecurityManager::getClassContext ()
int maxlen = t->length();
int len = 0;
for (int i=0; i<len; i++)
for (int i=0; i<maxlen; i++)
{
jclass klass = t->classAt(i);
if (klass != NULL && klass != &java::lang::VMSecurityManager::class$
@ -41,7 +41,7 @@ java::lang::VMSecurityManager::getClassContext ()
NULL);
len = 0;
for (int i=0; i<len; i++)
for (int i=0; i<maxlen; i++)
{
jclass klass = t->classAt(i);
if (klass != NULL && klass != &java::lang::VMSecurityManager::class$