From e04fe127a420787c1548255d3162a20fcc3368ab Mon Sep 17 00:00:00 2001 From: arno Date: Tue, 20 Oct 2009 12:22:52 +0000 Subject: [PATCH] - Small Linux fix. git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@460 e16421f0-f15b-0410-abcd-98678b794739 --- transfer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transfer.cpp b/transfer.cpp index bb6cdb7..1bdcd64 100644 --- a/transfer.cpp +++ b/transfer.cpp @@ -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 -- 2.20.1