summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/mmap.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:27 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:27 +0000
commit6e52073fac7be205251b222f63cf2f61d1519364 (patch)
treed406a1676155eb0b1ff985701f45b7af9175ee6d /apt-pkg/contrib/mmap.cc
parentdb0c350f8f028b0afa153fe91106e6ef03a34aa0 (diff)
A few functions migrated around
Author: jgg Date: 1999-08-02 03:07:47 GMT A few functions migrated around
Diffstat (limited to 'apt-pkg/contrib/mmap.cc')
-rw-r--r--apt-pkg/contrib/mmap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index 850e1046a..ef6b96d6a 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.16 1999/07/18 05:58:40 jgg Exp $
+// $Id: mmap.cc,v 1.17 1999/08/02 03:07:47 jgg Exp $
/* ######################################################################
MMap Class - Provides 'real' mmap or a faked mmap using read().
@@ -269,7 +269,7 @@ unsigned long DynamicMMap::WriteString(const char *String,
return 0;
}
- if (Len == 0)
+ if (Len == (unsigned long)-1)
Len = strlen(String);
iSize += Len + 1;
memcpy((char *)Base + Result,String,Len);