[poppler] Branch 'signatureHandling' - utils/pdfsig.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jan 6 14:37:18 PST 2016


 utils/pdfsig.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4b0f6e5ec04058d12fbf7537c80b662cbea931b9
Author: Markus Kilås <digital at markuspage.com>
Date:   Wed Jan 6 23:36:17 2016 +0100

    Fix printf for unsigned int

diff --git a/utils/pdfsig.cc b/utils/pdfsig.cc
index 6762c37..2190fea 100644
--- a/utils/pdfsig.cc
+++ b/utils/pdfsig.cc
@@ -7,6 +7,7 @@
 // Copyright 2015 André Guerreiro <aguerreiro1985 at gmail.com>
 // Copyright 2015 André Esser <bepandre at hotmail.com>
 // Copyright 2015 Albert Astals Cid <aacid at kde.org>
+// Copyright 2016 Markus Kilås <digital at markuspage.com>
 //
 //========================================================================
 
@@ -154,7 +155,7 @@ int main(int argc, char *argv[])
 
   for (unsigned int i = 0; i < sigCount; i++) {
     sig_info = sig_widgets.at(i)->validateSignature(!dontVerifyCert, false);
-    printf("Signature #%d:\n", i+1);
+    printf("Signature #%u:\n", i+1);
     printf("  - Signer Certificate Common Name: %s\n", sig_info->getSignerName());
     printf("  - Signing Time: %s\n", time_str = getReadableTime(sig_info->getSigningTime()));
     printf("  - Signature Validation: %s\n", getReadableSigState(sig_info->getSignatureValStatus()));


More information about the poppler mailing list