fixed call to nsIInputStream::Read(), no longer passing 0 offset.

This commit is contained in:
beard%netscape.com 1999-03-08 00:15:40 +00:00
Родитель bcfc9a5e17
Коммит cd2bbf2482
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -538,7 +538,7 @@ NS_METHOD MRJPluginInstance::OnDataAvailable(const char* url, nsIInputStream* in
// hopefully all our data is available. // hopefully all our data is available.
char* codeBase = new char[length + 1]; char* codeBase = new char[length + 1];
if (codeBase != NULL) { 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 // We've delayed processing the applet tag, because we
// don't know the location of the curren document yet. // don't know the location of the curren document yet.
codeBase[length] = '\0'; codeBase[length] = '\0';