[Pcsclite-cvs-commit] PCSC/src readerfactory.c,1.58,1.59

rousseau@haydn.debian.org rousseau@haydn.debian.org


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv1018

Modified Files:
	readerfactory.c 
Log Message:
initialise the lpcDevice field of the new slot and not of the main reader


Index: readerfactory.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/readerfactory.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- readerfactory.c	1 Aug 2004 15:35:51 -0000	1.58
+++ readerfactory.c	1 Aug 2004 15:38:46 -0000	1.59
@@ -318,7 +318,7 @@
 		sprintf(tmpReader + strlen(tmpReader) - 2, "%02X", j);
 
 		strcpy((sReadersContexts[dwContextB])->lpcLibrary, lpcLibrary);
-		strcpy((sReadersContexts[dwContext])->lpcDevice, lpcDevice);
+		strcpy((sReadersContexts[dwContextB])->lpcDevice, lpcDevice);
 		(sReadersContexts[dwContextB])->dwVersion =
 		  (sReadersContexts[dwContext])->dwVersion;
 		(sReadersContexts[dwContextB])->dwPort =