Commit 7b4a4fce by Matt Kraai Committed by Matt Kraai

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
parent 99bf9b55
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
......
......@@ -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$
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment