From dac7093de88954149c087a0506dfc578dbc1f9ce Mon Sep 17 00:00:00 2001 From: "scc%mozilla.org" Date: Fri, 29 Jun 2001 17:33:28 +0000 Subject: [PATCH] fixing Solaris bustage --- modules/libjar/nsJAR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/libjar/nsJAR.cpp b/modules/libjar/nsJAR.cpp index 83f61aee7164..c0897bc79ff2 100644 --- a/modules/libjar/nsJAR.cpp +++ b/modules/libjar/nsJAR.cpp @@ -1199,7 +1199,7 @@ nsZipReaderCache::GetZip(nsIFile* zipFile, nsIZipReader* *result) rv = zipFile->GetPath(getter_Copies(path)); if (NS_FAILED(rv)) return rv; - nsCStringKey key(path); + nsCStringKey key(path.get()); nsJAR* zip = NS_STATIC_CAST(nsJAR*, NS_STATIC_CAST(nsIZipReader*,mZips.Get(&key))); // AddRefs if (zip) { #ifdef ZIP_CACHE_HIT_RATE @@ -1323,7 +1323,7 @@ nsZipReaderCache::ReleaseZip(nsJAR* zip) rv = zipFile->GetPath(getter_Copies(path)); if (NS_FAILED(rv)) return rv; - nsCStringKey key(path); + nsCStringKey key(path.get()); PRBool removed = mZips.Remove(&key); // Releases NS_ASSERTION(removed, "botched");