gpg: Fix a recently introduced printf format buglet.

* g10/parse-packet.c (dump_sig_subpkt): Fix format error.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-09-27 15:57:52 +02:00
parent 9698761933
commit b966a7c142
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View 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, "");