bustage fix for bug 411579.
authorsayrer@gmail.com
Fri, 18 Jan 2008 01:28:01 -0800
changeset 10389 e29e153e1fdaa861605253b7508ed2ffb226610e
parent 10388 d4cff0028ff1552ad40aa4f3645aec008a491bea
child 10390 eb5e4cd15c2eb358e2f98c32d863e81b0341cd8e
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs411579
milestone1.9b3pre
bustage fix for bug 411579.
modules/libpref/src/nsPrefService.cpp
--- a/modules/libpref/src/nsPrefService.cpp
+++ b/modules/libpref/src/nsPrefService.cpp
@@ -599,17 +599,17 @@ static nsresult openPrefFile(nsIFile* aF
     return rv;        
 
   PRInt64 fileSize;
   rv = aFile->GetFileSize(&fileSize);
   if (NS_FAILED(rv))
     return rv;
 
   char *fileBuffer = nsnull;
-  fileBuffer = new char[nsInt64(fileSize)];
+  fileBuffer = new char[fileSize];
   if (fileBuffer == nsnull)
     return NS_ERROR_OUT_OF_MEMORY;
 
   PRUint32 amtRead = 0;
   rv = inStr->Read(fileBuffer, fileSize, &amtRead);
   if (NS_FAILED(rv)) {
     delete fileBuffer;
     return rv;