From 8d0828d01d341e8489db54fe5b4e72cd2d6daea3 Mon Sep 17 00:00:00 2001 From: "serge%netscape.com" Date: Wed, 14 Nov 2001 02:15:57 +0000 Subject: [PATCH] bug#99080 using plugger, makes the temp file huge; r=peterl; sr=dougt git-svn-id: svn://10.0.0.236/trunk@108002 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp index d76aabca09a..e91980feb74 100644 --- a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -2106,7 +2106,7 @@ NS_IMETHODIMP nsPluginStreamListenerPeer::OnDataAvailable(nsIRequest *request, // if we are caching this to disk ourselves, lets write the bytes out. nsCOMPtr outStream; mPluginStreamInfo->GetLocalCachedFileStream(getter_AddRefs(outStream)); - while (outStream && amountWrote <= amountRead && NS_SUCCEEDED(rv)) + while (outStream && amountWrote < amountRead && NS_SUCCEEDED(rv)) rv = outStream->Write(buffer, amountRead, &amountWrote); delete [] buffer; }