]> git.saurik.com Git - apt.git/commitdiff
New Hex2Num function
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:12 +0000 (16:58 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:12 +0000 (16:58 +0000)
Author: jgg
Date: 2001-05-27 23:50:42 GMT
New Hex2Num function

apt-inst/deb/dpkgdb.cc

index 532ca232a3fdb5e81a10a93e08b11a68586c1e1f..047702f506f79d144b103004bfdad5ea93e1078a 100644 (file)
@@ -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;