diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:25 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:25 +0000 |
commit | e5eebd12b7d7faf31210511dbf15edbda508ffc4 (patch) | |
tree | be8a6ee3610d52a5902619e88f2cca939a7d5555 /apt-pkg/contrib/mmap.cc | |
parent | 0919e3f9400aba51bd73e7f90c6d1ba4406b5421 (diff) |
Widened the mmap size
Author: jgg
Date: 1998-11-12 03:14:39 GMT
Widened the mmap size
Diffstat (limited to 'apt-pkg/contrib/mmap.cc')
-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 e12e077c6..f6def2154 100644 --- a/apt-pkg/contrib/mmap.cc +++ b/apt-pkg/contrib/mmap.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: mmap.cc,v 1.8 1998/07/26 04:49:34 jgg Exp $ +// $Id: mmap.cc,v 1.9 1998/11/12 03:14:39 jgg Exp $ /* ###################################################################### MMap Class - Provides 'real' mmap or a faked mmap using read(). @@ -163,7 +163,7 @@ unsigned long DynamicMMap::RawAllocate(unsigned long Size,unsigned long Aln) iSize = Result + Size; // Just in case error check - if (Result > WorkSpace) + if (Result + Size > WorkSpace) { _error->Error("Dynamic MMap ran out of room"); return 0; |