Skip to content

Commit

Permalink
Simplify the code
Browse files Browse the repository at this point in the history
No need to use a strange size of 10+MAX_ATR_SIZE for the ATR buffer.
  • Loading branch information
LudovicRousseau committed Apr 7, 2024
1 parent 1c3957a commit 0a0fea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ifdhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ EXTERNAL RESPONSECODE IFDHPowerICC(DWORD Lun, DWORD Action,

unsigned int nlength;
RESPONSECODE return_value = IFD_SUCCESS;
unsigned char pcbuffer[10+MAX_ATR_SIZE];
unsigned char pcbuffer[MAX_ATR_SIZE];
int reader_index;
#ifndef NO_LOG
const char *actions[] = { "PowerUp", "PowerDown", "Reset" };
Expand Down

0 comments on commit 0a0fea9

Please sign in to comment.