Add room for SW1-SW2 in case of maximum reply size (256 bytes)

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1604 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-11-14 10:14:54 +00:00
parent 43c4fe5ff5
commit 3b746f0b5e
1 changed files with 2 additions and 2 deletions

View File

@ -194,8 +194,8 @@ static int pcsc_transmit(struct sc_reader *reader, struct sc_slot_info *slot,
dwSendLength = sendsize;
dwRecvLength = *recvsize;
if (dwRecvLength > 256)
dwRecvLength = 256;
if (dwRecvLength > 258)
dwRecvLength = 258;
if (!control) {
rv = SCardTransmit(card, &sSendPci, sendbuf, dwSendLength,