]> git.saurik.com Git - apt.git/commitdiff
You can't just assume the start is always zero :/.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 30 Jan 2017 17:15:49 +0000 (09:15 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 30 Jan 2017 17:15:49 +0000 (09:15 -0800)
apt-pkg/contrib/mmap.cc

index cb73fbc5d03907d563aedbe31cb988b10891b8fb..f632cd6c54ecc622b385a63961f08700b71fe5e8 100644 (file)
@@ -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;
       }