fingerprints are 20 bytes, not 40. duh.

This commit is contained in:
Vincent Breitmoser 2015-05-17 00:59:50 +02:00
parent 9a6f581400
commit 765990ed13

View File

@ -83,7 +83,7 @@ public class ViewKeyYubiKeyFragment extends Fragment
Bundle args = getArguments(); Bundle args = getArguments();
ByteBuffer buf = ByteBuffer.wrap(args.getByteArray(ARG_FINGERPRINT)); 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++) { for (int i = 0; i < mFingerprints.length; i++) {
mFingerprints[i] = new byte[20]; mFingerprints[i] = new byte[20];
buf.get(mFingerprints[i]); buf.get(mFingerprints[i]);