Fixed issue with dumping iclass tags > 2KB in size
authorMartin Holst Swende <martin@swende.se>
Thu, 23 Apr 2015 07:50:44 +0000 (09:50 +0200)
committerMartin Holst Swende <martin@swende.se>
Thu, 23 Apr 2015 07:50:44 +0000 (09:50 +0200)
client/cmdhficlass.c

index 44b074b35cc8de0acb1ee65c42b25a9f93a0d442..b83371960d007958e6ae5c1a7d6f1d861693a9de 100644 (file)
@@ -345,7 +345,7 @@ int CmdHFiClassReader_Dump(const char *Cmd)
                        if(dataLength > 0)
                        {
                                PrintAndLog("Got %d bytes data (total so far %d)" ,dataLength,iclass_datalen);
-                               memcpy(iclass_data, resp.d.asBytes,dataLength);
+                               memcpy(iclass_data+iclass_datalen, resp.d.asBytes,dataLength);
                                iclass_datalen += dataLength;
                        }else
                        {//Last transfer, datalength 0 means the dump is finished
Impressum, Datenschutz