diff options
Diffstat (limited to 'libjava/java/lang')
-rw-r--r-- | libjava/java/lang/natVMSecurityManager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/lang/natVMSecurityManager.cc b/libjava/java/lang/natVMSecurityManager.cc index 33aa887..8fd2875 100644 --- a/libjava/java/lang/natVMSecurityManager.cc +++ b/libjava/java/lang/natVMSecurityManager.cc @@ -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$ |