fix DesfireCommandEx

This commit is contained in:
merlokk committed 2021-07-13 17:36:27 +03:00
1 parent 741f560a8d
commit 5a72b53676
1 file changed
+1 -1
+1 -1
View File
@@ -919,7 +919,7 @@ static int DesfireCommandEx(DesfireContext *dctx, uint8_t cmd, uint8_t *data, si
if (resplen)
*resplen = xresplen;
if (resp)
memcpy(resp, xresp, xresplen);
memcpy(resp, xresp, (splitbysize == 0) ? xresplen : xresplen * splitbysize);
return PM3_SUCCESS;
}