Parcourir la source

You can't just assume the start is always zero :/.

Jay Freeman (saurik) il y a 9 ans
Parent
commit
0b23d3c0a7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apt-pkg/contrib/mmap.cc

+ 1 - 1
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;
       }