Avoid void* arithmetic GCC extension.

This commit is contained in:
Romain Tartiere 2012-05-14 13:59:09 +00:00
parent 07c5c78a8e
commit c41b8aa340

View file

@ -571,7 +571,7 @@ mifare_cryto_postprocess_data (MifareTag tag, void *data, ssize_t *nbytes, int c
/* Single block */
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;
crc_pos++;
*nbytes += 1;