fix for 20732

Copied read amount of bytes to array instead of using method argument.


git-svn-id: svn://10.0.0.236/trunk@58142 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
idk%eng.sun.com
2000-01-18 22:44:47 +00:00
parent 14db886ed8
commit 8db6d2482d

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;
}