From 9c14e3d619e713aefa623986b5bbae81a1d6cc94 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:43 +0000 Subject: Config class and source list Author: jgg Date: 1998-07-09 05:12:27 GMT Config class and source list --- apt-pkg/pkgcachegen.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apt-pkg/pkgcachegen.cc') diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index aac3f77d9..3e37c74f3 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcachegen.cc,v 1.7 1998/07/07 04:17:04 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.8 1998/07/09 05:12:27 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -329,9 +330,7 @@ unsigned long pkgCacheGenerator::WriteUniqString(const char *S, for (; I != Cache.StringItemP; Last = &I->NextItem, I = Cache.StringItemP + I->NextItem) { - Res = strncmp(Cache.StrP + I->String,S,Size); - if (Res == 0 && *(Cache.StrP + I->String + Size) != 0) - Res = 1; + Res = stringcmp(S,S+Size,Cache.StrP + I->String); if (Res >= 0) break; } -- cgit v1.2.3-70-g09d2