From cd2bbf2482e0db9fab69e8607462efd9c2f1fed0 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Mon, 8 Mar 1999 00:15:40 +0000 Subject: [PATCH] fixed call to nsIInputStream::Read(), no longer passing 0 offset. --- plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp b/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp index 911e3d6b44a..a6a25e01b7e 100644 --- a/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp +++ b/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp @@ -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';