From 9deebc6aae1515542bed788b52ec8c366ca9748c Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:58:12 +0000 Subject: New Hex2Num function Author: jgg Date: 2001-05-27 23:50:42 GMT New Hex2Num function --- apt-inst/deb/dpkgdb.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apt-inst/deb/dpkgdb.cc b/apt-inst/deb/dpkgdb.cc index 532ca232a..047702f50 100644 --- a/apt-inst/deb/dpkgdb.cc +++ b/apt-inst/deb/dpkgdb.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: dpkgdb.cc,v 1.3 2001/05/27 23:46:28 jgg Exp $ +// $Id: dpkgdb.cc,v 1.4 2001/05/27 23:50:42 jgg Exp $ /* ###################################################################### DPKGv1 Database Implemenation @@ -464,9 +464,9 @@ bool debDpkgDB::ReadConfFiles() // Insert a new entry unsigned char MD5[16]; - if (Hex2Num(StartMd5,EndMd5,MD5,16) == false) + if (Hex2Num(string(StartMd5,EndMd5-StartMd5),MD5,16) == false) return _error->Error("Error parsing MD5. Offset %lu",Offset); - + if (FList->AddConfFile(Start,End,FlPkg,MD5) == false) return false; Start = EndMd5; -- cgit v1.2.3-70-g09d2