From c41b8aa340178181956e9308d14c73832d539669 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Mon, 14 May 2012 13:59:09 +0000 Subject: [PATCH] Avoid void* arithmetic GCC extension. --- libfreefare/mifare_desfire_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreefare/mifare_desfire_crypto.c b/libfreefare/mifare_desfire_crypto.c index 4d4d158..8917f33 100644 --- a/libfreefare/mifare_desfire_crypto.c +++ b/libfreefare/mifare_desfire_crypto.c @@ -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;