Avoid void* arithmetic GCC extension.
This commit is contained in:
parent
07c5c78a8e
commit
c41b8aa340
1 changed files with 1 additions and 1 deletions
|
@ -571,7 +571,7 @@ mifare_cryto_postprocess_data (MifareTag tag, void *data, ssize_t *nbytes, int c
|
||||||
/* Single block */
|
/* Single block */
|
||||||
crc_pos = 0;
|
crc_pos = 0;
|
||||||
}
|
}
|
||||||
memmove (res + crc_pos + 1, res + crc_pos, *nbytes - crc_pos);
|
memmove ((uint8_t *)res + crc_pos + 1, (uint8_t *)res + crc_pos, *nbytes - crc_pos);
|
||||||
((uint8_t *)res)[crc_pos] = 0x00;
|
((uint8_t *)res)[crc_pos] = 0x00;
|
||||||
crc_pos++;
|
crc_pos++;
|
||||||
*nbytes += 1;
|
*nbytes += 1;
|
||||||
|
|
Loading…
Reference in a new issue