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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user