mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
fingerprints are 20 bytes, not 40. duh.
This commit is contained in:
parent
48f6e20f6c
commit
7e5e0df0bc
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user