mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
fix for 20732
Copied read amount of bytes to array instead of using method argument.
This commit is contained in:
parent
92cc754390
commit
29bb4bf994
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user