mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-30 04:22:18 -05:00
fingerprints are 20 bytes, not 40. duh.
This commit is contained in:
parent
9a6f581400
commit
765990ed13
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user