mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
fixed len
This commit is contained in:
parent
741bf3b288
commit
1bf2526c34
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ static inline bool oddparity8(const uint8_t x) {
|
|||
}
|
||||
|
||||
static inline void oddparitybuf(const uint8_t *x, size_t len, uint8_t *parity) {
|
||||
memset(parity, 0x00, len / 8 + 1);
|
||||
memset(parity, 0x00, (len - 1) / 8 + 1);
|
||||
for (int i = 0; i < len; i++)
|
||||
parity[i / 8] |= oddparity8(x[i]) << (7 - (i % 8));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue