aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2016-02-19 13:59:19 +0000
committerNeal H. Walfield <[email protected]>2016-02-19 15:13:02 +0000
commit10671c3a4c18ea26035a5819a9f2b8fd6c7e41ea (patch)
tree9d7abdad56dc9159e3018e37e940b2ccd8237c8d /g10/keyedit.c
parentgpg: Initialize the primary key when generating a key. (diff)
downloadgnupg-10671c3a4c18ea26035a5819a9f2b8fd6c7e41ea.tar.gz
gnupg-10671c3a4c18ea26035a5819a9f2b8fd6c7e41ea.zip
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 <[email protected]>
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 19ddf2922..f2ef6134e 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -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;