aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-05-17 00:59:50 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-05-17 01:04:34 +0200
commit765990ed13c9452d1488defd30d6537b762e5628 (patch)
tree165d63b4c71c2c56783103a4da64a35035ca1919 /OpenKeychain/src/main/java/org/sufficientlysecure
parent9a6f581400d04339f12dc008f4c38bef1134b6dc (diff)
downloadopen-keychain-765990ed13c9452d1488defd30d6537b762e5628.tar.gz
open-keychain-765990ed13c9452d1488defd30d6537b762e5628.tar.bz2
open-keychain-765990ed13c9452d1488defd30d6537b762e5628.zip
fingerprints are 20 bytes, not 40. duh.
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyYubiKeyFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyYubiKeyFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyYubiKeyFragment.java
index ecd351965..78a6ac55a 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyYubiKeyFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyYubiKeyFragment.java
@@ -83,7 +83,7 @@ public class ViewKeyYubiKeyFragment extends Fragment
Bundle args = getArguments();
ByteBuffer buf = ByteBuffer.wrap(args.getByteArray(ARG_FINGERPRINT));
- mFingerprints = new byte[buf.remaining()/40][];
+ mFingerprints = new byte[buf.remaining()/20][];
for (int i = 0; i < mFingerprints.length; i++) {
mFingerprints[i] = new byte[20];
buf.get(mFingerprints[i]);