mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
fixed call to nsIInputStream::Read(), no longer passing 0 offset.
This commit is contained in:
parent
63cb18b48c
commit
afdee7c53a
@ -538,7 +538,7 @@ NS_METHOD MRJPluginInstance::OnDataAvailable(const char* url, nsIInputStream* in
|
||||
// hopefully all our data is available.
|
||||
char* codeBase = new char[length + 1];
|
||||
if (codeBase != NULL) {
|
||||
if (input->Read(codeBase, 0, length, &length) == NS_OK) {
|
||||
if (input->Read(codeBase, length, &length) == NS_OK) {
|
||||
// We've delayed processing the applet tag, because we
|
||||
// don't know the location of the curren document yet.
|
||||
codeBase[length] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user