1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

gpg: Use format_keyid rather than manually formatting the keyid.

* g10/keyedit.c (menu_addrevoker): Use format_keyid rather than
manually formatting the keyid.
* g10/keygen.c (card_write_key_to_backup_file): Likewise.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2016-02-19 14:59:19 +01:00
parent bf9d1248c8
commit 10671c3a4c
2 changed files with 4 additions and 5 deletions

View file

@ -3953,8 +3953,7 @@ menu_addrevoker (ctrl_t ctrl, kbnode_t pub_keyblock, int sensitive)
log_error (_("this key has already been designated "
"as a revoker\n"));
sprintf (buf, "%08lX%08lX",
(ulong) pk->keyid[0], (ulong) pk->keyid[1]);
format_keyid (pk_keyid (pk), KF_LONG, buf, sizeof (buf));
write_status_text (STATUS_ALREADY_SIGNED, buf);
break;