Bug 727370 - Fix typo that crept in while rebasing. r=benjamin
authorGian-Carlo Pascutto <gpascutto@mozilla.com>
Fri, 28 Sep 2012 19:00:20 +0200
changeset 108624 51644b3ee33365d9464c1ca058d3773f2e7f6889
parent 108623 ec0dcd401a3ff735815f4209a7ba26d57bcf87a1
child 108625 e7381ac9e30a172cc129070e57bcca3ff59a8cd5
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersbenjamin
bugs727370
milestone18.0a1
Bug 727370 - Fix typo that crept in while rebasing. r=benjamin
toolkit/components/url-classifier/HashStore.cpp
--- a/toolkit/components/url-classifier/HashStore.cpp
+++ b/toolkit/components/url-classifier/HashStore.cpp
@@ -319,17 +319,17 @@ HashStore::CalculateChecksum(nsAutoCStri
   rv = hash->Init(nsICryptoHash::MD5);
   NS_ENSURE_SUCCESS(rv, rv);
 
   if (!aChecksumPresent) {
     // Hash entire file
     rv = hash->UpdateFromStream(mInputStream, UINT32_MAX);
   } else {
     // Hash everything but last checksum bytes
-    rv = hash->UpdateFromStream(mInputStream, fileSize-CHECKSUM_SIZE);
+    rv = hash->UpdateFromStream(mInputStream, aSize-CHECKSUM_SIZE);
   }
   NS_ENSURE_SUCCESS(rv, rv);
 
   rv = hash->Finish(false, aChecksum);
   NS_ENSURE_SUCCESS(rv, rv);
 
   return NS_OK;
 }