fingerprints are 20 bytes, not 40. duh.

This commit is contained in:
Vincent Breitmoser 2015-05-17 00:59:50 +02:00
parent 48f6e20f6c
commit 7e5e0df0bc

View File

@ -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]);