From b966a7c142ab6341f4149d55e2609dbb9914acec Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 27 Sep 2019 15:57:52 +0200 Subject: [PATCH] gpg: Fix a recently introduced printf format buglet. * g10/parse-packet.c (dump_sig_subpkt): Fix format error. Signed-off-by: Werner Koch --- g10/parse-packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 874ff76b0..2f92c1d2c 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -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, "");