projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix display of SHA-1 fingerprints
[onak.git]
/
keyindex.c
diff --git
a/keyindex.c
b/keyindex.c
index eee2e8a6f867415c3651c5c5d57f0b00424d00ae..4eedf1f648f9f107c85c22ecb799d04af8b5f6a1 100644
(file)
--- 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");