diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2017-01-30 09:15:49 -0800 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2020-07-17 00:22:23 -1000 |
commit | c3d6ccddcc7888fa6797ce330e680cdd3d42a42e (patch) | |
tree | eef2bf651b7c76db16d0cdbe082adc902fc8ccc3 /apt-pkg | |
parent | 6f6cf0d29890aa3068bca48a3da384ffa5c73b4d (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; } |