diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2017-01-30 09:15:49 -0800 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-08-17 12:47:30 -1000 |
commit | 7299ad9aab662612d880673fe9473dc7c849008e (patch) | |
tree | 13c29a4f914af9ae5dd570da21159b6c32dfff74 /apt-pkg | |
parent | 4ff9a830a501e255f67ff912b5213796550fcc94 (diff) |
You can't just assume the start is always zero :/.
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/contrib/mmap.cc | 2 |
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; } |