- Small Linux fix.
authorarno <arno@e16421f0-f15b-0410-abcd-98678b794739>
Tue, 20 Oct 2009 12:22:52 +0000 (12:22 +0000)
committerarno <arno@e16421f0-f15b-0410-abcd-98678b794739>
Tue, 20 Oct 2009 12:22:52 +0000 (12:22 +0000)
git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@460 e16421f0-f15b-0410-abcd-98678b794739

transfer.cpp

index bb6cdb7..1bdcd64 100644 (file)
@@ -131,7 +131,7 @@ void FileTransfer::SetSize (size_t bytes) { // peaks/root must be already set
        }
        if (hashmaphandle_ == NULL || hashes_ == NULL)
 #else
-    hashes_ = (Sha1Hash*) mmap (NULL, expected_size, PROT_READ|PROT_WRITE,
+    hashes_ = (Sha1Hash*) mmap (NULL, expected_size_, PROT_READ|PROT_WRITE,
                                MAP_SHARED, hashfd_, 0);
     if (hashes_==MAP_FAILED)
 #endif