summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-01-30 09:15:49 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-01-30 09:15:49 -0800
commit0b23d3c0a7a116a19c14ae63b6281464ba1382a4 (patch)
tree08381582a3c7429031df7ae8e7b6e7adfda8ebeb /apt-pkg/contrib
parent89cb5d4dd729c4b8479eec94b9c4a58e11ab1794 (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 cb73fbc5d..f632cd6c5 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -194,7 +194,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;
}