[Pcsclite-cvs-commit] CVS PCSC/src
CVS User corcoran-guest
ludovic.rousseau@free.fr
Fri, 17 Sep 2004 12:49:12 -0600
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv26565
Modified Files:
musclecard.c
Log Message:
initialized more vars in ListTokens
--- /cvsroot/pcsclite/PCSC/src/musclecard.c 2004/09/07 21:36:44 1.41
+++ /cvsroot/pcsclite/PCSC/src/musclecard.c 2004/09/17 18:49:12 1.42
@@ -10,7 +10,7 @@
* You may not remove this header from this file without
* prior permission from the author.
*
- * $Id: musclecard.c,v 1.41 2004/09/07 21:36:44 rousseau Exp $
+ * $Id: musclecard.c,v 1.42 2004/09/17 18:49:12 corcoran-guest Exp $
*/
#include "config.h"
@@ -199,11 +199,22 @@
memcpy(currentToken->tokenId,
rgReaderStates.rgbAtr, rgReaderStates.cbAtr);
currentToken->tokenIdLength = rgReaderStates.cbAtr;
+
+ memcpy(currentToken->tokenApp,
+ tokenInfo.tokenApp, tokenInfo.tokenAppLen);
+ currentToken->tokenAppLen = tokenInfo.tokenAppLen;
+
+ strncpy(currentToken->svProvider,
+ tokenInfo.svProvider, MSC_MAXSIZE_SVCPROV);
}
else
{
memset(currentToken->tokenId, 0x00, MAX_ATR_SIZE);
currentToken->tokenIdLength = 0x00;
+
+ memset(currentToken->tokenApp, 0x00, MSC_MAXSIZE_AID);
+ currentToken->tokenAppLen = 0x00;
+ memset(currentToken->svProvider, 0x00, MSC_MAXSIZE_SVCPROV);
}
currentToken->tokenState = rgReaderStates.dwEventState;