diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-09-28 08:47:47 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-09-28 08:47:47 +0000 |
commit | dd9ebe3bbbe3ab48d73d03da498bfa74cc78b415 (patch) | |
tree | 79ce709966ae1faf1217db86de0656087dec9e07 /apt-pkg | |
parent | d11052999e27fb482e4858afed09218d01ded299 (diff) | |
parent | ea92d0369e9848714f13a808c0bc8f2e5a53969a (diff) |
* prepare a new ubuntu upload
Patches applied:
* michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-62
* leak fix for debian #250583
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/contrib/mmap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc index bc22fba67..e395e6cc7 100644 --- a/apt-pkg/contrib/mmap.cc +++ b/apt-pkg/contrib/mmap.cc @@ -155,9 +155,9 @@ DynamicMMap::DynamicMMap(FileFd &F,unsigned long Flags,unsigned long WorkSpace) unsigned long EndOfFile = Fd->Size(); if (EndOfFile > WorkSpace) WorkSpace = EndOfFile; - else + else if(WorkSpace > 0) { - Fd->Seek(WorkSpace); + Fd->Seek(WorkSpace - 1); char C = 0; Fd->Write(&C,sizeof(C)); } |