Skip to content

Commit ee13654

Browse files
ifdhandler: Use symbolic CCID_HEADER_SIZE insteaf of 10
1 parent 2681b1a commit ee13654

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifdhandler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ EXTERNAL RESPONSECODE IFDHGetCapabilities(DWORD Lun, DWORD Tag,
563563
case SCARD_ATTR_MAXINPUT:
564564
*Length = sizeof(uint32_t);
565565
if (Value)
566-
*(uint32_t *)Value = ccid_reader->device.ccid.dwMaxCCIDMessageLength -10;
566+
*(uint32_t *)Value = ccid_reader->device.ccid.dwMaxCCIDMessageLength - CCID_HEADER_SIZE;
567567
break;
568568

569569
#if !defined(TWIN_SERIAL)

0 commit comments

Comments
 (0)