X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.c;h=4eedf1f648f9f107c85c22ecb799d04af8b5f6a1;hb=0419ca8378046fbf42cb837dcbb54682ef7495c6;hp=eee2e8a6f867415c3651c5c5d57f0b00424d00ae;hpb=fc26ef0fdc3bc7fe19278365dc4fbe1d404e410a;p=onak.git 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");