fix for 20732

Copied read amount of bytes to array instead of using method argument.
This commit is contained in:
idk%eng.sun.com 2000-01-18 22:44:47 +00:00
parent 92cc754390
commit 29bb4bf994

View File

@ -99,7 +99,7 @@ JNIEXPORT jint JNICALL Java_org_mozilla_pluglet_mozilla_PlugletInputStream_nativ
PR_LOG(PlugletLog::log, PR_LOG_DEBUG,
("PlugletInputStream.nativeRead: %i bytes read\n", retval));
env->SetByteArrayRegion(b,off,len,bufElems);
env->SetByteArrayRegion(b,off,retval,bufElems);
free(bufElems);
return retval;
}