From 0a0fea99894de8f394c1479fe2ebac1bc1a57cbc Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sun, 7 Apr 2024 16:52:23 +0200 Subject: [PATCH] Simplify the code No need to use a strange size of 10+MAX_ATR_SIZE for the ATR buffer. --- src/ifdhandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifdhandler.c b/src/ifdhandler.c index 07f0ece5..a8887b96 100644 --- a/src/ifdhandler.c +++ b/src/ifdhandler.c @@ -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" };