summaryrefslogtreecommitdiff
path: root/apt-inst
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:12 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:12 +0000
commit9deebc6aae1515542bed788b52ec8c366ca9748c (patch)
tree50fadbf14f85cc928c94f11d4904ac3608d40f1c /apt-inst
parent1825554677c23fbf3e6ae36264ac093fd15554db (diff)
New Hex2Num function
Author: jgg Date: 2001-05-27 23:50:42 GMT New Hex2Num function
Diffstat (limited to 'apt-inst')
-rw-r--r--apt-inst/deb/dpkgdb.cc6
1 files 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;