Add support for client getting bigbufsize

This commit is contained in:
slurdge
2020-06-10 23:03:03 +02:00
parent df4bdc89ea
commit c11c7ab545
5 changed files with 20 additions and 9 deletions

View File

@@ -2837,7 +2837,7 @@ static int CmdResetRead(const char *Cmd) {
if (resp.status == PM3_SUCCESS) {
uint16_t gotsize = BIGBUF_SIZE - 1;
uint16_t gotsize = pm3_capabilities.bigbuf_size - 1;
uint8_t *got = calloc(gotsize, sizeof(uint8_t));
if (got == NULL) {
PrintAndLogEx(WARNING, "failed to allocate memory");