]> git.cameronkatri.com Git - ldid.git/commitdiff
Fix CDHash in -h
authorCameron Katri <me@cameronkatri.com>
Mon, 18 Jul 2022 17:06:51 +0000 (13:06 -0400)
committerCameron Katri <me@cameronkatri.com>
Mon, 18 Jul 2022 17:06:51 +0000 (13:06 -0400)
ldid.cpp

index 0bca61244a9cb203f06bc635b5d847f155a35097..1703da026ef65d06dc2f1e8c4e77228a1540f979 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -3627,7 +3627,7 @@ int main(int argc, char *argv[]) {
                 }
                 printf("Hash choices=%s\n", choices.c_str() + 1);
 
-                printf("CDHash=%s\n", best->second.hash_.c_str());
+                printf("CDHash=%.40s\n", best->second.hash_.c_str());
 
                 if (cmsBegin != 0 && cmsEnd != 0) {
                     // This loads the CMS blob and parses each X509 cert in the blob to extract the