From 1825554677c23fbf3e6ae36264ac093fd15554db Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:58:11 +0000 Subject: G++3 fixes from Randolph Author: jgg Date: 2001-05-27 23:45:39 GMT G++3 fixes from Randolph --- apt-inst/extract.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apt-inst/extract.cc') diff --git a/apt-inst/extract.cc b/apt-inst/extract.cc index a3c06c088..5c5ad55b2 100644 --- a/apt-inst/extract.cc +++ b/apt-inst/extract.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: extract.cc,v 1.2 2001/02/20 07:03:16 jgg Exp $ +// $Id: extract.cc,v 1.3 2001/05/27 23:47:14 jgg Exp $ /* ###################################################################### Archive Extraction Directory Stream @@ -56,6 +56,7 @@ #include #include #include +#include /*}}}*/ static const char *TempExt = "dpkg-tmp"; @@ -473,8 +474,8 @@ bool pkgExtract::CheckDirReplace(string Dir,unsigned int Depth) // Look up the node File = Dir + Dent->d_name; - pkgFLCache::NodeIterator Nde = FLCache.GetNode(File.begin(), - File.end(),0,false,false); + pkgFLCache::NodeIterator Nde = FLCache.GetNode(File.c_str(), + File.c_str() + File.length(),0,false,false); // The file is not owned by this package if (Nde.end() != false || Nde.RealPackage() != FLPkg) -- cgit v1.2.3