X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/fc26ef0fdc3bc7fe19278365dc4fbe1d404e410a..0419ca8378046fbf42cb837dcbb54682ef7495c6:/keyindex.c diff --git a/keyindex.c b/keyindex.c index eee2e8a..4eedf1f 100644 --- a/keyindex.c +++ b/keyindex.c @@ -189,10 +189,11 @@ void display_fingerprint(struct openpgp_publickey *key) (i % 2 == 0)) { printf(" "); } - printf("%02X", fp[i]); - if ((i * 2) == length) { + if (length == 20 && (i * 2) == length) { + /* Extra space in the middle of a SHA1 fingerprint */ printf(" "); } + printf("%02X", fp[i]); } printf("\n");