summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-01-30 09:15:49 -0800
committerSam Bingner <sam@bingner.com>2019-08-17 12:47:30 -1000
commit7299ad9aab662612d880673fe9473dc7c849008e (patch)
tree13c29a4f914af9ae5dd570da21159b6c32dfff74 /apt-pkg/contrib
parent4ff9a830a501e255f67ff912b5213796550fcc94 (diff)
You can't just assume the start is always zero :/.
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/mmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index 10786f23f..bb190fef0 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -192,7 +192,7 @@ bool MMap::Sync(unsigned long Start,unsigned long Stop)
{
if (SyncToFd != 0)
{
- if (!SyncToFd->Seek(0) ||
+ if (!SyncToFd->Seek(Start) ||
!SyncToFd->Write (((char *)Base)+Start, Stop-Start))
return false;
}