summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:21 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:21 +0000
commite2c7e6b53ddb527a64846415a9251801f0891248 (patch)
tree684a8333484d6385f60187e9bcb2492e90b99e4c /apt-pkg
parentb1b663d1904126517d10c11bff8d9bf186d4c75b (diff)
Fixed string parsing, Bug #100046
Author: jgg Date: 2001-06-08 05:16:39 GMT Fixed string parsing, Bug #100046
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/strutl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
index e49794f6a..d01951914 100644
--- a/apt-pkg/contrib/strutl.cc
+++ b/apt-pkg/contrib/strutl.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: strutl.cc,v 1.43 2001/05/29 05:09:44 jgg Exp $
+// $Id: strutl.cc,v 1.44 2001/06/08 05:16:39 jgg Exp $
/* ######################################################################
String Util - Some useful string functions.
@@ -967,7 +967,7 @@ bool CheckDomainList(string Host,string List)
continue;
// Match the end of the string..
- if ((Host.size() >= (unsigned)(Cur - List.begin())) &&
+ if ((Host.size() >= (unsigned)(Cur - Start)) &&
Cur - Start != 0 &&
stringcasecmp(Host.end() - (Cur - Start),Host.end(),Start,Cur) == 0)
return true;