]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/mifareutil.c
Refactoring of BigBuf handling in order to prepare for more efficient memory allocati...
[proxmark3-svn] / armsrc / mifareutil.c
index 163eca790f932317cd9ed5db7651cfb906ba032e..1de4819e737ba9bf9ccec0885586a6ffbd0d7bf1 100644 (file)
@@ -23,13 +23,13 @@ int MF_DBGLEVEL = MF_DBG_ALL;
 \r
 // memory management\r
 uint8_t* get_bigbufptr_recvrespbuf(void) {\r
-       return (((uint8_t *)BigBuf) + RECV_RESP_OFFSET);        \r
+       return BigBuf_get_addr() + RECV_RESP_OFFSET;    \r
 }\r
 uint8_t* get_bigbufptr_recvcmdbuf(void) {\r
-       return (((uint8_t *)BigBuf) + RECV_CMD_OFFSET); \r
+       return BigBuf_get_addr() + RECV_CMD_OFFSET;     \r
 }\r
 uint8_t* get_bigbufptr_emlcardmem(void) {\r
-       return (((uint8_t *)BigBuf) + CARD_MEMORY_OFFSET);\r
+       return BigBuf_get_addr() + CARD_MEMORY_OFFSET;\r
 }\r
 \r
 // crypto1 helpers\r
@@ -717,4 +717,4 @@ int mifare_desfire_des_auth2(uint32_t uid, uint8_t *key, uint8_t *blockData){
                return 0;\r
        }\r
        return 1;\r
-}
\ No newline at end of file
+}
Impressum, Datenschutz