gpg: Fix a recently introduced printf format buglet.
authorWerner Koch <wk@gnupg.org>
Fri, 27 Sep 2019 13:57:52 +0000 (15:57 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 27 Sep 2019 13:57:52 +0000 (15:57 +0200)
* g10/parse-packet.c (dump_sig_subpkt): Fix format error.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/parse-packet.c

index 874ff76..2f92c1d 100644 (file)
@@ -1603,7 +1603,7 @@ dump_sig_subpkt (int hashed, int type, int critical,
          p = "[invalid length]";
        else
          {
-            es_fprintf (listfp, "%d", length/hlen);
+            es_fprintf (listfp, "%u", (unsigned int)length/hlen);
             while (length)
               {
                 es_fprintf (listfp, "\n\t%*s", nprinted-1, "");