From 10569f110e34087538b1aef9c118778066fb2d4b Mon Sep 17 00:00:00 2001 From: nils Date: Mon, 7 Feb 2005 22:43:51 +0000 Subject: [PATCH] workaround for broken cashmouse driver git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2156 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/card.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libopensc/card.c b/src/libopensc/card.c index 70331523..630cfdea 100644 --- a/src/libopensc/card.c +++ b/src/libopensc/card.c @@ -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];