workaround for broken cashmouse driver

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2156 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2005-02-07 22:43:51 +00:00
parent 864825651e
commit 10569f110e
1 changed files with 6 additions and 0 deletions

View File

@ -187,7 +187,13 @@ static int sc_transceive(struct sc_card *card, struct sc_apdu *apdu)
break;
}
sendsize = data - sbuf;
#if 0
recvsize = apdu->resplen + 2; /* space for the SW's */
#else
/* workaround for a broken cashmouse driver, should be harmless
* for other drivers -- Nils */
recvsize = sizeof(rbuf);
#endif
if (card->ctx->debug >= 5) {
char buf[2048];