fix bug in mifare_ultralight_read()

This commit is contained in:
Philippe Teuwen 2012-11-13 23:36:01 +00:00
parent f6fecaaa9b
commit 7d26778a2c

View file

@ -187,7 +187,7 @@ mifare_ultralight_read (MifareTag tag, MifareUltralightPageNumber page, MifareUl
if (!MIFARE_ULTRALIGHT(tag)->cached_pages[page]) {
BUFFER_INIT (cmd, 2);
BUFFER_ALIAS (res, MIFARE_ULTRALIGHT(tag)->cache[page], sizeof(MifareUltralightPage));
BUFFER_ALIAS (res, MIFARE_ULTRALIGHT(tag)->cache[page], sizeof(MifareUltralightPage) * 4);
BUFFER_APPEND (cmd, 0x30);
BUFFER_APPEND (cmd, page);