mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 16:38:50 -05:00
fix ByteBuffer offset mistake in NfcActivity
This commit is contained in:
parent
b2b19d7b2b
commit
354bc87579
@ -340,7 +340,8 @@ public class NfcActivity extends ActionBarActivity {
|
|||||||
// return the master key fingerprint
|
// return the master key fingerprint
|
||||||
ByteBuffer fpbuf = ByteBuffer.wrap(data);
|
ByteBuffer fpbuf = ByteBuffer.wrap(data);
|
||||||
byte[] fp = new byte[20];
|
byte[] fp = new byte[20];
|
||||||
fpbuf.get(fp, 20*idx, 20);
|
fpbuf.position(idx*20);
|
||||||
|
fpbuf.get(fp, 0, 20);
|
||||||
|
|
||||||
return fp;
|
return fp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user